Class: Azure::ARM::Network::Models::ExpressRouteServiceProviderBandwidthsOffered
- Inherits:
-
Object
- Object
- Azure::ARM::Network::Models::ExpressRouteServiceProviderBandwidthsOffered
- Includes:
- MsRestAzure
- Defined in:
- lib/azure_mgmt_network/models/express_route_service_provider_bandwidths_offered.rb
Overview
Contains Bandwidths offered in ExpressRouteServiceProviders
Instance Attribute Summary collapse
-
#offer_name ⇒ String
Gets the OfferName.
-
#value_in_mbps ⇒ Integer
Gets the ValueInMbps.
Class Method Summary collapse
-
.deserialize_object(object) ⇒ ExpressRouteServiceProviderBandwidthsOffered
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
#offer_name ⇒ String
Returns Gets the OfferName.
16 17 18 |
# File 'lib/azure_mgmt_network/models/express_route_service_provider_bandwidths_offered.rb', line 16 def offer_name @offer_name end |
#value_in_mbps ⇒ Integer
Returns Gets the ValueInMbps.
19 20 21 |
# File 'lib/azure_mgmt_network/models/express_route_service_provider_bandwidths_offered.rb', line 19 def value_in_mbps @value_in_mbps end |
Class Method Details
.deserialize_object(object) ⇒ ExpressRouteServiceProviderBandwidthsOffered
Deserializes given Ruby Hash into Model object. object.
52 53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/azure_mgmt_network/models/express_route_service_provider_bandwidths_offered.rb', line 52 def self.deserialize_object(object) return if object.nil? output_object = ExpressRouteServiceProviderBandwidthsOffered.new deserialized_property = object['offerName'] output_object.offer_name = deserialized_property deserialized_property = object['valueInMbps'] deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty? output_object.value_in_mbps = deserialized_property output_object end |
.serialize_object(object) ⇒ Hash
Serializes given Model object into Ruby Hash.
33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/azure_mgmt_network/models/express_route_service_provider_bandwidths_offered.rb', line 33 def self.serialize_object(object) object.validate output_object = {} serialized_property = object.offer_name output_object['offerName'] = serialized_property unless serialized_property.nil? serialized_property = object.value_in_mbps output_object['valueInMbps'] = serialized_property unless serialized_property.nil? output_object end |
Instance Method Details
#validate ⇒ Object
Validate the object. Throws ValidationError if validation fails.
24 25 26 |
# File 'lib/azure_mgmt_network/models/express_route_service_provider_bandwidths_offered.rb', line 24 def validate # Nothing to validate end |