# 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::ServiceFabric::V7_0_0_42
  module Models
    #
    # Defines description for creating a Service Fabric compose deployment.
    #
    class CreateComposeDeploymentDescription

      include MsRestAzure

      # @return [String] The name of the deployment.
      attr_accessor :deployment_name

      # @return [String] The content of the compose file that describes the
      # deployment to create.
      attr_accessor :compose_file_content

      # @return [RegistryCredential] Credential information to connect to
      # container registry.
      attr_accessor :registry_credential


      #
      # Mapper for CreateComposeDeploymentDescription class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'CreateComposeDeploymentDescription',
          type: {
            name: 'Composite',
            class_name: 'CreateComposeDeploymentDescription',
            model_properties: {
              deployment_name: {
                client_side_validation: true,
                required: true,
                serialized_name: 'DeploymentName',
                type: {
                  name: 'String'
                }
              },
              compose_file_content: {
                client_side_validation: true,
                required: true,
                serialized_name: 'ComposeFileContent',
                type: {
                  name: 'String'
                }
              },
              registry_credential: {
                client_side_validation: true,
                required: false,
                serialized_name: 'RegistryCredential',
                type: {
                  name: 'Composite',
                  class_name: 'RegistryCredential'
                }
              }
            }
          }
        }
      end
    end
  end
end
