class Azure::Storage::Mgmt::V2018_03_01_preview::Models::Restriction

The restriction because of which SKU cannot be used.

Attributes

reason_code[RW]

@return [ReasonCode] The reason for the restriction. As of now this can be “QuotaId” or “NotAvailableForSubscription”. Quota Id is set when the SKU has requiredQuotas parameter as the subscription does not belong to that quota. The “NotAvailableForSubscription” is related to capacity at DC. Possible values include: 'QuotaId', 'NotAvailableForSubscription'

type[RW]

@return [String] The type of restrictions. As of now only possible value for this is location.

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 Restriction class as Ruby Hash. This will be used for serialization/deserialization.

# File lib/2018-03-01-preview/generated/azure_mgmt_storage/models/restriction.rb, line 35
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'Restriction',
    type: {
      name: 'Composite',
      class_name: 'Restriction',
      model_properties: {
        type: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        values: {
          client_side_validation: true,
          required: false,
          read_only: true,
          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