Class: Azure::ARM::Web::Models::SkuCapacity
- Inherits:
-
Object
- Object
- Azure::ARM::Web::Models::SkuCapacity
- Includes:
- MsRestAzure
- Defined in:
- lib/azure_mgmt_web/models/sku_capacity.rb
Overview
Description of the App Service Plan scale options
Instance Attribute Summary collapse
-
#default ⇒ Integer
SKU.
-
#maximum ⇒ Integer
SKU.
-
#minimum ⇒ Integer
SKU.
-
#scale_type ⇒ String
Available scale configurations for an App Service Plan.
Class Method Summary collapse
-
.deserialize_object(object) ⇒ SkuCapacity
Deserializes given Ruby Hash into Model object.
-
.serialize_object(object) ⇒ Hash
Serializes given Model object into Ruby Hash.
Instance Method Summary collapse
-
#validate ⇒ Object
Validate the object.
Instance Attribute Details
#default ⇒ Integer
SKU
25 26 27 |
# File 'lib/azure_mgmt_web/models/sku_capacity.rb', line 25 def default @default end |
#maximum ⇒ Integer
SKU
21 22 23 |
# File 'lib/azure_mgmt_web/models/sku_capacity.rb', line 21 def maximum @maximum end |
#minimum ⇒ Integer
SKU
17 18 19 |
# File 'lib/azure_mgmt_web/models/sku_capacity.rb', line 17 def minimum @minimum end |
#scale_type ⇒ String
Returns Available scale configurations for an App Service Plan.
28 29 30 |
# File 'lib/azure_mgmt_web/models/sku_capacity.rb', line 28 def scale_type @scale_type end |
Class Method Details
.deserialize_object(object) ⇒ SkuCapacity
Deserializes given Ruby Hash into Model object.
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 |
# File 'lib/azure_mgmt_web/models/sku_capacity.rb', line 66 def self.deserialize_object(object) return if object.nil? output_object = SkuCapacity.new deserialized_property = object['minimum'] deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty? output_object.minimum = deserialized_property deserialized_property = object['maximum'] deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty? output_object.maximum = deserialized_property deserialized_property = object['default'] deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty? output_object.default = deserialized_property deserialized_property = object['scaleType'] output_object.scale_type = deserialized_property output_object end |
.serialize_object(object) ⇒ Hash
Serializes given Model object into Ruby Hash.
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
# File 'lib/azure_mgmt_web/models/sku_capacity.rb', line 42 def self.serialize_object(object) object.validate output_object = {} serialized_property = object.minimum output_object['minimum'] = serialized_property unless serialized_property.nil? serialized_property = object.maximum output_object['maximum'] = serialized_property unless serialized_property.nil? serialized_property = object.default output_object['default'] = serialized_property unless serialized_property.nil? serialized_property = object.scale_type output_object['scaleType'] = serialized_property unless serialized_property.nil? output_object end |
Instance Method Details
#validate ⇒ Object
Validate the object. Throws ValidationError if validation fails.
33 34 35 |
# File 'lib/azure_mgmt_web/models/sku_capacity.rb', line 33 def validate # Nothing to validate end |