Class: Azure::Web::Mgmt::V2016_03_01::Models::StampCapacity

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2016-03-01/generated/azure_mgmt_web/models/stamp_capacity.rb

Overview

Stamp capacity information.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#available_capacityInteger

etc…).



20
21
22
# File 'lib/2016-03-01/generated/azure_mgmt_web/models/stamp_capacity.rb', line 20

def available_capacity
  @available_capacity
end

#compute_modeComputeModeOptions

include: ‘Shared’, ‘Dedicated’, ‘Dynamic’



31
32
33
# File 'lib/2016-03-01/generated/azure_mgmt_web/models/stamp_capacity.rb', line 31

def compute_mode
  @compute_mode
end

#exclude_from_capacity_allocationBoolean

Basic apps are not used for capacity allocation.



45
46
47
# File 'lib/2016-03-01/generated/azure_mgmt_web/models/stamp_capacity.rb', line 45

def exclude_from_capacity_allocation
  @exclude_from_capacity_allocation
end

#is_applicable_for_all_compute_modesBoolean

apps; otherwise, false.



49
50
51
# File 'lib/2016-03-01/generated/azure_mgmt_web/models/stamp_capacity.rb', line 49

def is_applicable_for_all_compute_modes
  @is_applicable_for_all_compute_modes
end

#nameString



16
17
18
# File 'lib/2016-03-01/generated/azure_mgmt_web/models/stamp_capacity.rb', line 16

def name
  @name
end

#site_modeString



52
53
54
# File 'lib/2016-03-01/generated/azure_mgmt_web/models/stamp_capacity.rb', line 52

def site_mode
  @site_mode
end

#total_capacityInteger

etc…).



24
25
26
# File 'lib/2016-03-01/generated/azure_mgmt_web/models/stamp_capacity.rb', line 24

def total_capacity
  @total_capacity
end

#unitString



27
28
29
# File 'lib/2016-03-01/generated/azure_mgmt_web/models/stamp_capacity.rb', line 27

def unit
  @unit
end

#worker_sizeWorkerSizeOptions

include: ‘Default’, ‘Small’, ‘Medium’, ‘Large’, ‘D1’, ‘D2’, ‘D3’



35
36
37
# File 'lib/2016-03-01/generated/azure_mgmt_web/models/stamp_capacity.rb', line 35

def worker_size
  @worker_size
end

#worker_size_idInteger

0 - Small 1 - Medium 2 - Large



41
42
43
# File 'lib/2016-03-01/generated/azure_mgmt_web/models/stamp_capacity.rb', line 41

def worker_size_id
  @worker_size_id
end

Class Method Details

.mapperObject

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



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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
# File 'lib/2016-03-01/generated/azure_mgmt_web/models/stamp_capacity.rb', line 59

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'StampCapacity',
    type: {
      name: 'Composite',
      class_name: 'StampCapacity',
      model_properties: {
        name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        available_capacity: {
          client_side_validation: true,
          required: false,
          serialized_name: 'availableCapacity',
          type: {
            name: 'Number'
          }
        },
        total_capacity: {
          client_side_validation: true,
          required: false,
          serialized_name: 'totalCapacity',
          type: {
            name: 'Number'
          }
        },
        unit: {
          client_side_validation: true,
          required: false,
          serialized_name: 'unit',
          type: {
            name: 'String'
          }
        },
        compute_mode: {
          client_side_validation: true,
          required: false,
          serialized_name: 'computeMode',
          type: {
            name: 'Enum',
            module: 'ComputeModeOptions'
          }
        },
        worker_size: {
          client_side_validation: true,
          required: false,
          serialized_name: 'workerSize',
          type: {
            name: 'Enum',
            module: 'WorkerSizeOptions'
          }
        },
        worker_size_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'workerSizeId',
          type: {
            name: 'Number'
          }
        },
        exclude_from_capacity_allocation: {
          client_side_validation: true,
          required: false,
          serialized_name: 'excludeFromCapacityAllocation',
          type: {
            name: 'Boolean'
          }
        },
        is_applicable_for_all_compute_modes: {
          client_side_validation: true,
          required: false,
          serialized_name: 'isApplicableForAllComputeModes',
          type: {
            name: 'Boolean'
          }
        },
        site_mode: {
          client_side_validation: true,
          required: false,
          serialized_name: 'siteMode',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end