Class: Azure::ARM::Network::Models::ApplicationGatewayUrlPathMapPropertiesFormat
- Inherits:
-
Object
- Object
- Azure::ARM::Network::Models::ApplicationGatewayUrlPathMapPropertiesFormat
- Includes:
- MsRestAzure
- Defined in:
- lib/azure_mgmt_network/models/application_gateway_url_path_map_properties_format.rb
Overview
Properties of probe of application gateway
Instance Attribute Summary collapse
-
#default_backend_address_pool ⇒ SubResource
resource of URL path map.
-
#default_backend_http_settings ⇒ SubResource
resource of URL path map.
-
#path_rules ⇒ Array<ApplicationGatewayPathRule>
URL path map resource.
-
#provisioning_state ⇒ String
settings resource Updating/Deleting/Failed.
Class Method Summary collapse
-
.deserialize_object(object) ⇒ ApplicationGatewayUrlPathMapPropertiesFormat
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_backend_address_pool ⇒ SubResource
resource of URL path map
17 18 19 |
# File 'lib/azure_mgmt_network/models/application_gateway_url_path_map_properties_format.rb', line 17 def default_backend_address_pool @default_backend_address_pool end |
#default_backend_http_settings ⇒ SubResource
resource of URL path map
21 22 23 |
# File 'lib/azure_mgmt_network/models/application_gateway_url_path_map_properties_format.rb', line 21 def default_backend_http_settings @default_backend_http_settings end |
#path_rules ⇒ Array<ApplicationGatewayPathRule>
URL path map resource
25 26 27 |
# File 'lib/azure_mgmt_network/models/application_gateway_url_path_map_properties_format.rb', line 25 def path_rules @path_rules end |
#provisioning_state ⇒ String
settings resource Updating/Deleting/Failed
29 30 31 |
# File 'lib/azure_mgmt_network/models/application_gateway_url_path_map_properties_format.rb', line 29 def provisioning_state @provisioning_state end |
Class Method Details
.deserialize_object(object) ⇒ ApplicationGatewayUrlPathMapPropertiesFormat
Deserializes given Ruby Hash into Model object. object.
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 |
# File 'lib/azure_mgmt_network/models/application_gateway_url_path_map_properties_format.rb', line 86 def self.deserialize_object(object) return if object.nil? output_object = ApplicationGatewayUrlPathMapPropertiesFormat.new deserialized_property = object['defaultBackendAddressPool'] unless deserialized_property.nil? deserialized_property = MsRestAzure::SubResource.deserialize_object(deserialized_property) end output_object.default_backend_address_pool = deserialized_property deserialized_property = object['defaultBackendHttpSettings'] unless deserialized_property.nil? deserialized_property = MsRestAzure::SubResource.deserialize_object(deserialized_property) end output_object.default_backend_http_settings = deserialized_property deserialized_property = object['pathRules'] unless deserialized_property.nil? deserialized_array = [] deserialized_property.each do |element1| unless element1.nil? element1 = ApplicationGatewayPathRule.deserialize_object(element1) end deserialized_array.push(element1) end deserialized_property = deserialized_array end output_object.path_rules = deserialized_property deserialized_property = object['provisioningState'] output_object.provisioning_state = deserialized_property output_object end |
.serialize_object(object) ⇒ Hash
Serializes given Model object into Ruby Hash.
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 |
# File 'lib/azure_mgmt_network/models/application_gateway_url_path_map_properties_format.rb', line 45 def self.serialize_object(object) object.validate output_object = {} serialized_property = object.default_backend_address_pool unless serialized_property.nil? serialized_property = MsRestAzure::SubResource.serialize_object(serialized_property) end output_object['defaultBackendAddressPool'] = serialized_property unless serialized_property.nil? serialized_property = object.default_backend_http_settings unless serialized_property.nil? serialized_property = MsRestAzure::SubResource.serialize_object(serialized_property) end output_object['defaultBackendHttpSettings'] = serialized_property unless serialized_property.nil? serialized_property = object.path_rules unless serialized_property.nil? serializedArray = [] serialized_property.each do |element| unless element.nil? element = ApplicationGatewayPathRule.serialize_object(element) end serializedArray.push(element) end serialized_property = serializedArray end output_object['pathRules'] = serialized_property unless serialized_property.nil? serialized_property = object.provisioning_state output_object['provisioningState'] = serialized_property unless serialized_property.nil? output_object end |
Instance Method Details
#validate ⇒ Object
Validate the object. Throws ValidationError if validation fails.
34 35 36 37 38 |
# File 'lib/azure_mgmt_network/models/application_gateway_url_path_map_properties_format.rb', line 34 def validate @default_backend_address_pool.validate unless @default_backend_address_pool.nil? @default_backend_http_settings.validate unless @default_backend_http_settings.nil? @path_rules.each{ |e| e.validate if e.respond_to?(:validate) } unless @path_rules.nil? end |