Sha256: 487889b57b87cf59c5dda782dd37c9bc29c124013751afab71bbbe0a26ab4b67

Contents?: true

Size: 1.09 KB

Versions: 4

Compression:

Stored size: 1.09 KB

Contents

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

module Azure::ARM::Compute
  module Models
    #
    # Describes an upgrade policy - automatic or manual.
    #
    class UpgradePolicy

      include MsRestAzure

      # @return [UpgradeMode] the upgrade mode. Possible values include:
      # 'Automatic', 'Manual'
      attr_accessor :mode


      #
      # Mapper for UpgradePolicy class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          required: false,
          serialized_name: 'UpgradePolicy',
          type: {
            name: 'Composite',
            class_name: 'UpgradePolicy',
            model_properties: {
              mode: {
                required: false,
                serialized_name: 'mode',
                type: {
                  name: 'Enum',
                  module: 'UpgradeMode'
                }
              }
            }
          }
        }
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
azure_mgmt_compute-0.7.0 lib/generated/azure_mgmt_compute/models/upgrade_policy.rb
azure_mgmt_compute-0.6.0 lib/generated/azure_mgmt_compute/models/upgrade_policy.rb
azure_mgmt_compute-0.5.0 lib/generated/azure_mgmt_compute/models/upgrade_policy.rb
azure_mgmt_compute-0.4.0 lib/generated/azure_mgmt_compute/models/upgrade_policy.rb