# 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::DeploymentManager::Mgmt::V2019_11_01_preview
  module Models
    #
    # Defines the properties of a rollout.
    #
    class RolloutPropertiesModel

      include MsRestAzure

      # @return [String] The current status of the rollout.
      attr_accessor :status

      # @return [Integer] The cardinal count of total number of retries
      # performed on the rollout at a given time.
      attr_accessor :total_retry_attempts

      # @return [RolloutOperationInfo] Operational information of the rollout.
      attr_accessor :operation_info

      # @return [Array<Service>] The detailed information on the services being
      # deployed.
      attr_accessor :services


      #
      # Mapper for RolloutPropertiesModel class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'RolloutProperties',
          type: {
            name: 'Composite',
            class_name: 'RolloutPropertiesModel',
            model_properties: {
              status: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'status',
                type: {
                  name: 'String'
                }
              },
              total_retry_attempts: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'totalRetryAttempts',
                type: {
                  name: 'Number'
                }
              },
              operation_info: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'operationInfo',
                type: {
                  name: 'Composite',
                  class_name: 'RolloutOperationInfo'
                }
              },
              services: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'services',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'ServiceElementType',
                      type: {
                        name: 'Composite',
                        class_name: 'Service'
                      }
                  }
                }
              }
            }
          }
        }
      end
    end
  end
end
