Class: Azure::ARM::Network::Models::ExpressRouteCircuitServiceProviderProperties
- Inherits:
-
Object
- Object
- Azure::ARM::Network::Models::ExpressRouteCircuitServiceProviderProperties
- Includes:
- MsRestAzure
- Defined in:
- lib/azure_mgmt_network/models/express_route_circuit_service_provider_properties.rb
Overview
Contains ServiceProviderProperties in an ExpressRouteCircuit
Instance Attribute Summary collapse
-
#bandwidth_in_mbps ⇒ Integer
Gets or sets BandwidthInMbps.
-
#peering_location ⇒ String
Gets or sets peering location.
-
#service_provider_name ⇒ String
Gets or sets serviceProviderName.
Class Method Summary collapse
-
.deserialize_object(object) ⇒ ExpressRouteCircuitServiceProviderProperties
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
#bandwidth_in_mbps ⇒ Integer
Returns Gets or sets BandwidthInMbps.
22 23 24 |
# File 'lib/azure_mgmt_network/models/express_route_circuit_service_provider_properties.rb', line 22 def bandwidth_in_mbps @bandwidth_in_mbps end |
#peering_location ⇒ String
Returns Gets or sets peering location.
19 20 21 |
# File 'lib/azure_mgmt_network/models/express_route_circuit_service_provider_properties.rb', line 19 def peering_location @peering_location end |
#service_provider_name ⇒ String
Returns Gets or sets serviceProviderName.
16 17 18 |
# File 'lib/azure_mgmt_network/models/express_route_circuit_service_provider_properties.rb', line 16 def service_provider_name @service_provider_name end |
Class Method Details
.deserialize_object(object) ⇒ ExpressRouteCircuitServiceProviderProperties
Deserializes given Ruby Hash into Model object. object.
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 |
# File 'lib/azure_mgmt_network/models/express_route_circuit_service_provider_properties.rb', line 58 def self.deserialize_object(object) return if object.nil? output_object = ExpressRouteCircuitServiceProviderProperties.new deserialized_property = object['serviceProviderName'] output_object.service_provider_name = deserialized_property deserialized_property = object['peeringLocation'] output_object.peering_location = deserialized_property deserialized_property = object['bandwidthInMbps'] deserialized_property = Integer(deserialized_property) unless deserialized_property.to_s.empty? output_object.bandwidth_in_mbps = deserialized_property output_object end |
.serialize_object(object) ⇒ Hash
Serializes given Model object into Ruby Hash.
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/azure_mgmt_network/models/express_route_circuit_service_provider_properties.rb', line 36 def self.serialize_object(object) object.validate output_object = {} serialized_property = object.service_provider_name output_object['serviceProviderName'] = serialized_property unless serialized_property.nil? serialized_property = object.peering_location output_object['peeringLocation'] = serialized_property unless serialized_property.nil? serialized_property = object.bandwidth_in_mbps output_object['bandwidthInMbps'] = serialized_property unless serialized_property.nil? output_object end |
Instance Method Details
#validate ⇒ Object
Validate the object. Throws ValidationError if validation fails.
27 28 29 |
# File 'lib/azure_mgmt_network/models/express_route_circuit_service_provider_properties.rb', line 27 def validate # Nothing to validate end |