Sha256: 533a27b30c31061c1da5fecab06bab22adc8419ca9acf83b8f6e63d5e51acc86

Contents?: true

Size: 1.65 KB

Versions: 2

Compression:

Stored size: 1.65 KB

Contents

# 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::Resources2::Mgmt::V2020_06_01
  module Models
    #
    # Deployment on error behavior.
    #
    class OnErrorDeployment

      include MsRestAzure2

      # @return [OnErrorDeploymentType] The deployment on error behavior type.
      # Possible values are LastSuccessful and SpecificDeployment. Possible
      # values include: 'LastSuccessful', 'SpecificDeployment'
      attr_accessor :type

      # @return [String] The deployment to be used on error case.
      attr_accessor :deployment_name


      #
      # Mapper for OnErrorDeployment class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'OnErrorDeployment',
          type: {
            name: 'Composite',
            class_name: 'OnErrorDeployment',
            model_properties: {
              type: {
                client_side_validation: true,
                required: false,
                serialized_name: 'type',
                type: {
                  name: 'Enum',
                  module: 'OnErrorDeploymentType'
                }
              },
              deployment_name: {
                client_side_validation: true,
                required: false,
                serialized_name: 'deploymentName',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
azure_mgmt_resources2-1.0.1 lib/2020-06-01/generated/azure_mgmt_resources2/models/on_error_deployment.rb
azure_mgmt_resources2-1.0.0 lib/2020-06-01/generated/azure_mgmt_resources2/models/on_error_deployment.rb