# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.

module Azure::Web::Mgmt::V2016_06_01
  module Models
    #
    # API resource properties
    #
    class ApiResourceProperties

      include MsRestAzure

      # @return [String]
      attr_accessor :name

      # @return [Hash{String => ConnectionParameter}] Connection parameters
      attr_accessor :connection_parameters

      # @return [ApiResourceMetadata]
      attr_accessor :metadata

      # @return [Array<String>] Runtime URLs
      attr_accessor :runtime_urls

      # @return [ApiResourceGeneralInformation]
      attr_accessor :general_information

      # @return [Array<String>] The managed API capabilities
      attr_accessor :capabilities

      # @return The JSON representation of the swagger
      attr_accessor :swagger

      # @return [ApiResourceBackendService]
      attr_accessor :backend_service

      # @return [ApiResourcePolicies]
      attr_accessor :policies

      # @return [String] URL where the swagger can be downloaded from
      attr_accessor :api_definition_url

      # @return [ApiResourceDefinitions]
      attr_accessor :api_definitions


      #
      # Mapper for ApiResourceProperties class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'ApiResourceProperties',
          type: {
            name: 'Composite',
            class_name: 'ApiResourceProperties',
            model_properties: {
              name: {
                client_side_validation: true,
                required: false,
                serialized_name: 'name',
                type: {
                  name: 'String'
                }
              },
              connection_parameters: {
                client_side_validation: true,
                required: false,
                serialized_name: 'connectionParameters',
                type: {
                  name: 'Dictionary',
                  value: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'ConnectionParameterElementType',
                      type: {
                        name: 'Composite',
                        class_name: 'ConnectionParameter'
                      }
                  }
                }
              },
              metadata: {
                client_side_validation: true,
                required: false,
                serialized_name: 'metadata',
                type: {
                  name: 'Composite',
                  class_name: 'ApiResourceMetadata'
                }
              },
              runtime_urls: {
                client_side_validation: true,
                required: false,
                serialized_name: 'runtimeUrls',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'StringElementType',
                      type: {
                        name: 'String'
                      }
                  }
                }
              },
              general_information: {
                client_side_validation: true,
                required: false,
                serialized_name: 'generalInformation',
                type: {
                  name: 'Composite',
                  class_name: 'ApiResourceGeneralInformation'
                }
              },
              capabilities: {
                client_side_validation: true,
                required: false,
                serialized_name: 'capabilities',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'StringElementType',
                      type: {
                        name: 'String'
                      }
                  }
                }
              },
              swagger: {
                client_side_validation: true,
                required: false,
                serialized_name: 'swagger',
                type: {
                  name: 'Object'
                }
              },
              backend_service: {
                client_side_validation: true,
                required: false,
                serialized_name: 'backendService',
                type: {
                  name: 'Composite',
                  class_name: 'ApiResourceBackendService'
                }
              },
              policies: {
                client_side_validation: true,
                required: false,
                serialized_name: 'policies',
                type: {
                  name: 'Composite',
                  class_name: 'ApiResourcePolicies'
                }
              },
              api_definition_url: {
                client_side_validation: true,
                required: false,
                serialized_name: 'apiDefinitionUrl',
                type: {
                  name: 'String'
                }
              },
              api_definitions: {
                client_side_validation: true,
                required: false,
                serialized_name: 'apiDefinitions',
                type: {
                  name: 'Composite',
                  class_name: 'ApiResourceDefinitions'
                }
              }
            }
          }
        }
      end
    end
  end
end
