Sha256: 51e7ac8c256008b26f0bfc5437a87fe8f4f27598c519d2895754431a6e919b62

Contents?: true

Size: 1.95 KB

Versions: 7

Compression:

Stored size: 1.95 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::Redis::Mgmt::V2015_08_01
  module Models
    #
    # SKU parameters supplied to the create Redis operation.
    #
    class Sku

      include MsRestAzure

      # @return [SkuName] What type of Redis cache to deploy. Valid values:
      # (Basic, Standard, Premium). Possible values include: 'Basic',
      # 'Standard', 'Premium'
      attr_accessor :name

      # @return [SkuFamily] Which family to use. Valid values: (C, P). Possible
      # values include: 'C', 'P'
      attr_accessor :family

      # @return [Integer] What size of Redis cache to deploy. Valid values: for
      # C family (0, 1, 2, 3, 4, 5, 6), for P family (1, 2, 3, 4).
      attr_accessor :capacity


      #
      # Mapper for Sku class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'Sku',
          type: {
            name: 'Composite',
            class_name: 'Sku',
            model_properties: {
              name: {
                client_side_validation: true,
                required: true,
                serialized_name: 'name',
                type: {
                  name: 'String'
                }
              },
              family: {
                client_side_validation: true,
                required: true,
                serialized_name: 'family',
                type: {
                  name: 'String'
                }
              },
              capacity: {
                client_side_validation: true,
                required: true,
                serialized_name: 'capacity',
                type: {
                  name: 'Number'
                }
              }
            }
          }
        }
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
azure_mgmt_redis-0.17.4 lib/2015-08-01/generated/azure_mgmt_redis/models/sku.rb
azure_mgmt_redis-0.17.3 lib/2015-08-01/generated/azure_mgmt_redis/models/sku.rb
azure_mgmt_redis-0.17.2 lib/2015-08-01/generated/azure_mgmt_redis/models/sku.rb
azure_mgmt_redis-0.17.1 lib/2015-08-01/generated/azure_mgmt_redis/models/sku.rb
azure_mgmt_redis-0.17.0 lib/2015-08-01/generated/azure_mgmt_redis/models/sku.rb
azure_mgmt_redis-0.16.0 lib/2015-08-01/generated/azure_mgmt_redis/models/sku.rb
azure_mgmt_redis-0.15.2 lib/2015-08-01/generated/azure_mgmt_redis/models/sku.rb