class Azure::Monitor::Mgmt::V2015_04_01::Models::AutoscaleSettingResourcePatch

The autoscale setting object for patch operations.

Attributes

enabled[RW]

@return [Boolean] the enabled flag. Specifies whether automatic scaling is enabled for the resource. The default value is 'true'. Default value: true .

name[RW]

@return [String] the name of the autoscale setting.

notifications[RW]

@return [Array<AutoscaleNotification>] the collection of notifications.

profiles[RW]

@return [Array<AutoscaleProfile>] the collection of automatic scaling profiles that specify different scaling parameters for different time periods. A maximum of 20 profiles can be specified.

tags[RW]

@return [Hash{String => String}] Resource tags

target_resource_uri[RW]

@return [String] the resource identifier of the resource that the autoscale setting should be added to.

Private Class Methods

mapper() click to toggle source

Mapper for AutoscaleSettingResourcePatch class as Ruby Hash. This will be used for serialization/deserialization.

# File lib/2015-04-01/generated/azure_mgmt_monitor/models/autoscale_setting_resource_patch.rb, line 43
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'AutoscaleSettingResourcePatch',
    type: {
      name: 'Composite',
      class_name: 'AutoscaleSettingResourcePatch',
      model_properties: {
        tags: {
          client_side_validation: true,
          required: false,
          serialized_name: 'tags',
          type: {
            name: 'Dictionary',
            value: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        profiles: {
          client_side_validation: true,
          required: true,
          serialized_name: 'properties.profiles',
          constraints: {
            MaxItems: 20
          },
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'AutoscaleProfileElementType',
                type: {
                  name: 'Composite',
                  class_name: 'AutoscaleProfile'
                }
            }
          }
        },
        notifications: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.notifications',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'AutoscaleNotificationElementType',
                type: {
                  name: 'Composite',
                  class_name: 'AutoscaleNotification'
                }
            }
          }
        },
        enabled: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.enabled',
          default_value: true,
          type: {
            name: 'Boolean'
          }
        },
        name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.name',
          type: {
            name: 'String'
          }
        },
        target_resource_uri: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.targetResourceUri',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end