class Azure::Reservations::Mgmt::V2018_06_01_preview::Models::SkuRestriction

Model object.

Attributes

reason_code[RW]

@return [String] The reason for restriction.

type[RW]

@return [String] The type of restrictions.

values[RW]

@return [Array<String>] The value of restrictions. If the restriction type is set to location. This would be different locations where the SKU is restricted.

Public Class Methods

mapper() click to toggle source

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

# File lib/2018-06-01-preview/generated/azure_mgmt_reservations/models/sku_restriction.rb, line 32
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'SkuRestriction',
    type: {
      name: 'Composite',
      class_name: 'SkuRestriction',
      model_properties: {
        type: {
          client_side_validation: true,
          required: false,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        values: {
          client_side_validation: true,
          required: false,
          serialized_name: 'values',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        reason_code: {
          client_side_validation: true,
          required: false,
          serialized_name: 'reasonCode',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end