Class: Azure::DataMigration::Mgmt::V2018_04_19::Models::ServiceSku

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2018-04-19/generated/azure_mgmt_data_migration/models/service_sku.rb

Overview

An Azure SKU instance

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#capacityInteger

Returns The capacity of the SKU, if it supports scaling.

Returns:

  • (Integer)

    The capacity of the SKU, if it supports scaling



33
34
35
# File 'lib/2018-04-19/generated/azure_mgmt_data_migration/models/service_sku.rb', line 33

def capacity
  @capacity
end

#familyString

performance classes within a tier, such as ‘A’, ‘D’, etc. for virtual machines

Returns:

  • (String)

    The SKU family, used when the service has multiple



25
26
27
# File 'lib/2018-04-19/generated/azure_mgmt_data_migration/models/service_sku.rb', line 25

def family
  @family
end

#nameString

Returns The unique name of the SKU, such as ‘P3’.

Returns:

  • (String)

    The unique name of the SKU, such as ‘P3’



16
17
18
# File 'lib/2018-04-19/generated/azure_mgmt_data_migration/models/service_sku.rb', line 16

def name
  @name
end

#sizeString

denote a service size or when a SKU has multiple performance classes within a family, e.g. ‘A1’ for virtual machines

Returns:

  • (String)

    The size of the SKU, used when the name alone does not



30
31
32
# File 'lib/2018-04-19/generated/azure_mgmt_data_migration/models/service_sku.rb', line 30

def size
  @size
end

#tierString

‘Standard’, or ‘Premium’

Returns:

  • (String)

    The tier of the SKU, such as ‘Free’, ‘Basic’,



20
21
22
# File 'lib/2018-04-19/generated/azure_mgmt_data_migration/models/service_sku.rb', line 20

def tier
  @tier
end

Class Method Details

.mapperObject

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



40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# File 'lib/2018-04-19/generated/azure_mgmt_data_migration/models/service_sku.rb', line 40

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ServiceSku',
    type: {
      name: 'Composite',
      class_name: 'ServiceSku',
      model_properties: {
        name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        tier: {
          client_side_validation: true,
          required: false,
          serialized_name: 'tier',
          type: {
            name: 'String'
          }
        },
        family: {
          client_side_validation: true,
          required: false,
          serialized_name: 'family',
          type: {
            name: 'String'
          }
        },
        size: {
          client_side_validation: true,
          required: false,
          serialized_name: 'size',
          type: {
            name: 'String'
          }
        },
        capacity: {
          client_side_validation: true,
          required: false,
          serialized_name: 'capacity',
          type: {
            name: 'Number'
          }
        }
      }
    }
  }
end