azure_mgmt_network 0.3.1 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/azure_mgmt_network.gemspec +4 -5
- data/lib/azure_mgmt_network.rb +3 -201
- data/lib/generated/azure_mgmt_network.rb +175 -0
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/application_gateways.rb +158 -59
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/express_route_circuit_authorizations.rb +92 -42
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/express_route_circuit_peerings.rb +91 -42
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/express_route_circuits.rb +210 -92
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/express_route_service_providers.rb +32 -11
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/load_balancers.rb +120 -53
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/local_network_gateways.rb +91 -42
- data/lib/generated/azure_mgmt_network/models/address_space.rb +53 -0
- data/lib/generated/azure_mgmt_network/models/application_gateway.rb +326 -0
- data/lib/generated/azure_mgmt_network/models/application_gateway_backend_address.rb +54 -0
- data/lib/generated/azure_mgmt_network/models/application_gateway_backend_address_pool.rb +112 -0
- data/lib/generated/azure_mgmt_network/models/application_gateway_backend_http_settings.rb +128 -0
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/application_gateway_cookie_based_affinity.rb +0 -0
- data/lib/generated/azure_mgmt_network/models/application_gateway_frontend_ipconfiguration.rb +120 -0
- data/lib/generated/azure_mgmt_network/models/application_gateway_frontend_port.rb +84 -0
- data/lib/generated/azure_mgmt_network/models/application_gateway_http_listener.rb +142 -0
- data/lib/generated/azure_mgmt_network/models/application_gateway_ipconfiguration.rb +87 -0
- data/lib/generated/azure_mgmt_network/models/application_gateway_list_result.rb +94 -0
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/application_gateway_operational_state.rb +0 -0
- data/lib/generated/azure_mgmt_network/models/application_gateway_path_rule.rb +115 -0
- data/lib/generated/azure_mgmt_network/models/application_gateway_probe.rb +135 -0
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/application_gateway_protocol.rb +0 -0
- data/lib/generated/azure_mgmt_network/models/application_gateway_request_routing_rule.rb +133 -0
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/application_gateway_request_routing_rule_type.rb +0 -0
- data/lib/generated/azure_mgmt_network/models/application_gateway_sku.rb +68 -0
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/application_gateway_sku_name.rb +0 -0
- data/lib/generated/azure_mgmt_network/models/application_gateway_ssl_certificate.rb +104 -0
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/application_gateway_tier.rb +0 -0
- data/lib/generated/azure_mgmt_network/models/application_gateway_url_path_map.rb +117 -0
- data/lib/generated/azure_mgmt_network/models/authorization_list_result.rb +95 -0
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/authorization_use_status.rb +0 -0
- data/lib/generated/azure_mgmt_network/models/azure_async_operation_result.rb +63 -0
- data/lib/generated/azure_mgmt_network/models/backend_address_pool.rb +127 -0
- data/lib/generated/azure_mgmt_network/models/bgp_settings.rb +66 -0
- data/lib/generated/azure_mgmt_network/models/connection_reset_shared_key.rb +45 -0
- data/lib/generated/azure_mgmt_network/models/connection_shared_key.rb +44 -0
- data/lib/generated/azure_mgmt_network/models/connection_shared_key_result.rb +44 -0
- data/lib/generated/azure_mgmt_network/models/dhcp_options.rb +53 -0
- data/lib/generated/azure_mgmt_network/models/dns_name_availability_result.rb +44 -0
- data/lib/generated/azure_mgmt_network/models/effective_network_security_group.rb +76 -0
- data/lib/generated/azure_mgmt_network/models/effective_network_security_group_association.rb +56 -0
- data/lib/generated/azure_mgmt_network/models/effective_network_security_group_list_result.rb +95 -0
- data/lib/generated/azure_mgmt_network/models/effective_network_security_rules.rb +162 -0
- data/lib/generated/azure_mgmt_network/models/effective_route.rb +124 -0
- data/lib/generated/azure_mgmt_network/models/effective_route_list_result.rb +93 -0
- data/lib/generated/azure_mgmt_network/models/effective_route_source.rb +18 -0
- data/lib/generated/azure_mgmt_network/models/effective_route_state.rb +16 -0
- data/lib/generated/azure_mgmt_network/models/error.rb +92 -0
- data/lib/generated/azure_mgmt_network/models/error_details.rb +64 -0
- data/lib/generated/azure_mgmt_network/models/express_route_circuit.rb +215 -0
- data/lib/generated/azure_mgmt_network/models/express_route_circuit_arp_table.rb +74 -0
- data/lib/generated/azure_mgmt_network/models/express_route_circuit_authorization.rb +95 -0
- data/lib/generated/azure_mgmt_network/models/express_route_circuit_list_result.rb +94 -0
- data/lib/generated/azure_mgmt_network/models/express_route_circuit_peering.rb +200 -0
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/express_route_circuit_peering_advertised_public_prefix_state.rb +0 -0
- data/lib/generated/azure_mgmt_network/models/express_route_circuit_peering_config.rb +85 -0
- data/lib/generated/azure_mgmt_network/models/express_route_circuit_peering_list_result.rb +95 -0
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/express_route_circuit_peering_state.rb +0 -0
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/express_route_circuit_peering_type.rb +0 -0
- data/lib/generated/azure_mgmt_network/models/express_route_circuit_routes_table.rb +84 -0
- data/lib/generated/azure_mgmt_network/models/express_route_circuit_routes_table_summary.rb +87 -0
- data/lib/generated/azure_mgmt_network/models/express_route_circuit_service_provider_properties.rb +65 -0
- data/lib/generated/azure_mgmt_network/models/express_route_circuit_sku.rb +66 -0
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/express_route_circuit_sku_family.rb +0 -0
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/express_route_circuit_sku_tier.rb +0 -0
- data/lib/generated/azure_mgmt_network/models/express_route_circuit_stats.rb +74 -0
- data/lib/generated/azure_mgmt_network/models/express_route_circuits_arp_table_list_result.rb +62 -0
- data/lib/generated/azure_mgmt_network/models/express_route_circuits_routes_table_list_result.rb +65 -0
- data/lib/generated/azure_mgmt_network/models/express_route_circuits_routes_table_summary_list_result.rb +65 -0
- data/lib/generated/azure_mgmt_network/models/express_route_service_provider.rb +124 -0
- data/lib/generated/azure_mgmt_network/models/express_route_service_provider_bandwidths_offered.rb +55 -0
- data/lib/generated/azure_mgmt_network/models/express_route_service_provider_list_result.rb +94 -0
- data/lib/generated/azure_mgmt_network/models/frontend_ipconfiguration.rb +199 -0
- data/lib/generated/azure_mgmt_network/models/inbound_nat_pool.rb +140 -0
- data/lib/generated/azure_mgmt_network/models/inbound_nat_rule.rb +169 -0
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/ipallocation_method.rb +0 -0
- data/lib/generated/azure_mgmt_network/models/ipconfiguration.rb +119 -0
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/ipversion.rb +0 -0
- data/lib/generated/azure_mgmt_network/models/load_balancer.rb +239 -0
- data/lib/generated/azure_mgmt_network/models/load_balancer_list_result.rb +94 -0
- data/lib/generated/azure_mgmt_network/models/load_balancing_rule.rb +191 -0
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/load_distribution.rb +0 -0
- data/lib/generated/azure_mgmt_network/models/local_network_gateway.rb +143 -0
- data/lib/generated/azure_mgmt_network/models/local_network_gateway_list_result.rb +94 -0
- data/lib/generated/azure_mgmt_network/models/network_interface.rb +197 -0
- data/lib/generated/azure_mgmt_network/models/network_interface_dns_settings.rb +99 -0
- data/lib/generated/azure_mgmt_network/models/network_interface_ipconfiguration.rb +195 -0
- data/lib/generated/azure_mgmt_network/models/network_interface_list_result.rb +94 -0
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/network_operation_status.rb +0 -0
- data/lib/generated/azure_mgmt_network/models/network_security_group.rb +188 -0
- data/lib/generated/azure_mgmt_network/models/network_security_group_list_result.rb +94 -0
- data/lib/generated/azure_mgmt_network/models/outbound_nat_rule.rb +117 -0
- data/lib/generated/azure_mgmt_network/models/probe.rb +159 -0
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/probe_protocol.rb +0 -0
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/processor_architecture.rb +0 -0
- data/lib/generated/azure_mgmt_network/models/public_ipaddress.rb +177 -0
- data/lib/generated/azure_mgmt_network/models/public_ipaddress_dns_settings.rb +73 -0
- data/lib/generated/azure_mgmt_network/models/public_ipaddress_list_result.rb +94 -0
- data/lib/generated/azure_mgmt_network/models/route.rb +110 -0
- data/lib/generated/azure_mgmt_network/models/route_list_result.rb +93 -0
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/route_next_hop_type.rb +0 -0
- data/lib/generated/azure_mgmt_network/models/route_table.rb +137 -0
- data/lib/generated/azure_mgmt_network/models/route_table_list_result.rb +94 -0
- data/lib/generated/azure_mgmt_network/models/security_rule.rb +185 -0
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/security_rule_access.rb +0 -0
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/security_rule_direction.rb +0 -0
- data/lib/generated/azure_mgmt_network/models/security_rule_list_result.rb +95 -0
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/security_rule_protocol.rb +0 -0
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/service_provider_provisioning_state.rb +0 -0
- data/lib/generated/azure_mgmt_network/models/subnet.rb +127 -0
- data/lib/generated/azure_mgmt_network/models/subnet_list_result.rb +94 -0
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/transport_protocol.rb +0 -0
- data/lib/generated/azure_mgmt_network/models/usage.rb +78 -0
- data/lib/generated/azure_mgmt_network/models/usage_name.rb +55 -0
- data/lib/generated/azure_mgmt_network/models/usages_list_result.rb +52 -0
- data/lib/generated/azure_mgmt_network/models/virtual_network.rb +173 -0
- data/lib/generated/azure_mgmt_network/models/virtual_network_gateway.rb +213 -0
- data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_connection.rb +239 -0
- data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_connection_list_result.rb +96 -0
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/virtual_network_gateway_connection_status.rb +0 -0
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/virtual_network_gateway_connection_type.rb +0 -0
- data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_ipconfiguration.rb +108 -0
- data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_list_result.rb +94 -0
- data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_sku.rb +68 -0
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/virtual_network_gateway_sku_name.rb +0 -0
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/virtual_network_gateway_sku_tier.rb +0 -0
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/virtual_network_gateway_type.rb +0 -0
- data/lib/generated/azure_mgmt_network/models/virtual_network_list_result.rb +94 -0
- data/lib/generated/azure_mgmt_network/models/virtual_network_peering.rb +146 -0
- data/lib/generated/azure_mgmt_network/models/virtual_network_peering_list_result.rb +95 -0
- data/lib/generated/azure_mgmt_network/models/virtual_network_peering_state.rb +17 -0
- data/lib/generated/azure_mgmt_network/models/vpn_client_configuration.rb +84 -0
- data/lib/generated/azure_mgmt_network/models/vpn_client_parameters.rb +45 -0
- data/lib/generated/azure_mgmt_network/models/vpn_client_revoked_certificate.rb +85 -0
- data/lib/generated/azure_mgmt_network/models/vpn_client_root_certificate.rb +84 -0
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/vpn_type.rb +0 -0
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/module_definition.rb +0 -0
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/network_interfaces.rb +913 -113
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/network_management_client.rb +31 -25
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/network_security_groups.rb +122 -53
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/public_ipaddresses.rb +120 -53
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/route_tables.rb +118 -53
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/routes.rb +90 -42
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/security_rules.rb +94 -42
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/subnets.rb +94 -46
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/usages.rb +4 -94
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/version.rb +1 -1
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/virtual_network_gateway_connections.rb +164 -86
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/virtual_network_gateways.rb +146 -70
- data/lib/generated/azure_mgmt_network/virtual_network_peerings.rb +654 -0
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/virtual_networks.rb +123 -58
- metadata +173 -221
- data/lib/azure_mgmt_network/models/address_space.rb +0 -58
- data/lib/azure_mgmt_network/models/application_gateway.rb +0 -102
- data/lib/azure_mgmt_network/models/application_gateway_backend_address.rb +0 -65
- data/lib/azure_mgmt_network/models/application_gateway_backend_address_pool.rb +0 -88
- data/lib/azure_mgmt_network/models/application_gateway_backend_address_pool_properties_format.rb +0 -119
- data/lib/azure_mgmt_network/models/application_gateway_backend_http_settings.rb +0 -88
- data/lib/azure_mgmt_network/models/application_gateway_backend_http_settings_properties_format.rb +0 -122
- data/lib/azure_mgmt_network/models/application_gateway_frontend_ipconfiguration.rb +0 -89
- data/lib/azure_mgmt_network/models/application_gateway_frontend_ipconfiguration_properties_format.rb +0 -114
- data/lib/azure_mgmt_network/models/application_gateway_frontend_port.rb +0 -88
- data/lib/azure_mgmt_network/models/application_gateway_frontend_port_properties_format.rb +0 -68
- data/lib/azure_mgmt_network/models/application_gateway_http_listener.rb +0 -88
- data/lib/azure_mgmt_network/models/application_gateway_http_listener_properties_format.rb +0 -141
- data/lib/azure_mgmt_network/models/application_gateway_ipconfiguration.rb +0 -88
- data/lib/azure_mgmt_network/models/application_gateway_ipconfiguration_properties_format.rb +0 -75
- data/lib/azure_mgmt_network/models/application_gateway_list_result.rb +0 -86
- data/lib/azure_mgmt_network/models/application_gateway_path_rule.rb +0 -88
- data/lib/azure_mgmt_network/models/application_gateway_path_rule_properties_format.rb +0 -101
- data/lib/azure_mgmt_network/models/application_gateway_probe.rb +0 -88
- data/lib/azure_mgmt_network/models/application_gateway_probe_properties_format.rb +0 -118
- data/lib/azure_mgmt_network/models/application_gateway_properties_format.rb +0 -408
- data/lib/azure_mgmt_network/models/application_gateway_request_routing_rule.rb +0 -88
- data/lib/azure_mgmt_network/models/application_gateway_request_routing_rule_properties_format.rb +0 -139
- data/lib/azure_mgmt_network/models/application_gateway_sku.rb +0 -86
- data/lib/azure_mgmt_network/models/application_gateway_ssl_certificate.rb +0 -88
- data/lib/azure_mgmt_network/models/application_gateway_ssl_certificate_properties_format.rb +0 -85
- data/lib/azure_mgmt_network/models/application_gateway_url_path_map.rb +0 -88
- data/lib/azure_mgmt_network/models/application_gateway_url_path_map_properties_format.rb +0 -122
- data/lib/azure_mgmt_network/models/authorization_list_result.rb +0 -87
- data/lib/azure_mgmt_network/models/authorization_properties_format.rb +0 -79
- data/lib/azure_mgmt_network/models/azure_async_operation_result.rb +0 -83
- data/lib/azure_mgmt_network/models/backend_address_pool.rb +0 -88
- data/lib/azure_mgmt_network/models/backend_address_pool_properties_format.rb +0 -135
- data/lib/azure_mgmt_network/models/bgp_settings.rb +0 -78
- data/lib/azure_mgmt_network/models/connection_reset_shared_key.rb +0 -58
- data/lib/azure_mgmt_network/models/connection_shared_key.rb +0 -56
- data/lib/azure_mgmt_network/models/connection_shared_key_result.rb +0 -56
- data/lib/azure_mgmt_network/models/dhcp_options.rb +0 -58
- data/lib/azure_mgmt_network/models/dns_name_availability_result.rb +0 -56
- data/lib/azure_mgmt_network/models/error.rb +0 -112
- data/lib/azure_mgmt_network/models/error_details.rb +0 -74
- data/lib/azure_mgmt_network/models/express_route_circuit.rb +0 -118
- data/lib/azure_mgmt_network/models/express_route_circuit_arp_table.rb +0 -84
- data/lib/azure_mgmt_network/models/express_route_circuit_authorization.rb +0 -88
- data/lib/azure_mgmt_network/models/express_route_circuit_list_result.rb +0 -86
- data/lib/azure_mgmt_network/models/express_route_circuit_peering.rb +0 -88
- data/lib/azure_mgmt_network/models/express_route_circuit_peering_config.rb +0 -92
- data/lib/azure_mgmt_network/models/express_route_circuit_peering_list_result.rb +0 -87
- data/lib/azure_mgmt_network/models/express_route_circuit_peering_properties_format.rb +0 -194
- data/lib/azure_mgmt_network/models/express_route_circuit_properties_format.rb +0 -188
- data/lib/azure_mgmt_network/models/express_route_circuit_routes_table.rb +0 -93
- data/lib/azure_mgmt_network/models/express_route_circuit_routes_table_summary.rb +0 -97
- data/lib/azure_mgmt_network/models/express_route_circuit_service_provider_properties.rb +0 -76
- data/lib/azure_mgmt_network/models/express_route_circuit_sku.rb +0 -83
- data/lib/azure_mgmt_network/models/express_route_circuit_stats.rb +0 -87
- data/lib/azure_mgmt_network/models/express_route_circuits_arp_table_list_result.rb +0 -85
- data/lib/azure_mgmt_network/models/express_route_circuits_routes_table_list_result.rb +0 -88
- data/lib/azure_mgmt_network/models/express_route_circuits_routes_table_summary_list_result.rb +0 -88
- data/lib/azure_mgmt_network/models/express_route_service_provider.rb +0 -92
- data/lib/azure_mgmt_network/models/express_route_service_provider_bandwidths_offered.rb +0 -67
- data/lib/azure_mgmt_network/models/express_route_service_provider_list_result.rb +0 -86
- data/lib/azure_mgmt_network/models/express_route_service_provider_properties_format.rb +0 -97
- data/lib/azure_mgmt_network/models/frontend_ipconfiguration.rb +0 -88
- data/lib/azure_mgmt_network/models/frontend_ipconfiguration_properties_format.rb +0 -237
- data/lib/azure_mgmt_network/models/inbound_nat_pool.rb +0 -88
- data/lib/azure_mgmt_network/models/inbound_nat_pool_properties_format.rb +0 -134
- data/lib/azure_mgmt_network/models/inbound_nat_rule.rb +0 -88
- data/lib/azure_mgmt_network/models/inbound_nat_rule_properties_format.rb +0 -162
- data/lib/azure_mgmt_network/models/ipconfiguration.rb +0 -88
- data/lib/azure_mgmt_network/models/ipconfiguration_properties_format.rb +0 -113
- data/lib/azure_mgmt_network/models/load_balancer.rb +0 -102
- data/lib/azure_mgmt_network/models/load_balancer_list_result.rb +0 -86
- data/lib/azure_mgmt_network/models/load_balancer_properties_format.rb +0 -278
- data/lib/azure_mgmt_network/models/load_balancing_rule.rb +0 -88
- data/lib/azure_mgmt_network/models/load_balancing_rule_properties_format.rb +0 -195
- data/lib/azure_mgmt_network/models/local_network_gateway.rb +0 -102
- data/lib/azure_mgmt_network/models/local_network_gateway_list_result.rb +0 -86
- data/lib/azure_mgmt_network/models/local_network_gateway_properties_format.rb +0 -107
- data/lib/azure_mgmt_network/models/network_interface.rb +0 -102
- data/lib/azure_mgmt_network/models/network_interface_dns_settings.rb +0 -94
- data/lib/azure_mgmt_network/models/network_interface_ipconfiguration.rb +0 -88
- data/lib/azure_mgmt_network/models/network_interface_ipconfiguration_properties_format.rb +0 -218
- data/lib/azure_mgmt_network/models/network_interface_list_result.rb +0 -86
- data/lib/azure_mgmt_network/models/network_interface_properties_format.rb +0 -176
- data/lib/azure_mgmt_network/models/network_security_group.rb +0 -102
- data/lib/azure_mgmt_network/models/network_security_group_list_result.rb +0 -86
- data/lib/azure_mgmt_network/models/network_security_group_properties_format.rb +0 -189
- data/lib/azure_mgmt_network/models/outbound_nat_rule.rb +0 -88
- data/lib/azure_mgmt_network/models/outbound_nat_rule_properties_format.rb +0 -117
- data/lib/azure_mgmt_network/models/probe.rb +0 -88
- data/lib/azure_mgmt_network/models/probe_properties_format.rb +0 -156
- data/lib/azure_mgmt_network/models/public_ipaddress.rb +0 -102
- data/lib/azure_mgmt_network/models/public_ipaddress_dns_settings.rb +0 -83
- data/lib/azure_mgmt_network/models/public_ipaddress_list_result.rb +0 -86
- data/lib/azure_mgmt_network/models/public_ipaddress_properties_format.rb +0 -146
- data/lib/azure_mgmt_network/models/route.rb +0 -88
- data/lib/azure_mgmt_network/models/route_list_result.rb +0 -85
- data/lib/azure_mgmt_network/models/route_properties_format.rb +0 -94
- data/lib/azure_mgmt_network/models/route_table.rb +0 -102
- data/lib/azure_mgmt_network/models/route_table_list_result.rb +0 -86
- data/lib/azure_mgmt_network/models/route_table_properties_format.rb +0 -116
- data/lib/azure_mgmt_network/models/security_rule.rb +0 -88
- data/lib/azure_mgmt_network/models/security_rule_list_result.rb +0 -87
- data/lib/azure_mgmt_network/models/security_rule_properties_format.rb +0 -176
- data/lib/azure_mgmt_network/models/subnet.rb +0 -88
- data/lib/azure_mgmt_network/models/subnet_list_result.rb +0 -86
- data/lib/azure_mgmt_network/models/subnet_properties_format.rb +0 -130
- data/lib/azure_mgmt_network/models/usage.rb +0 -96
- data/lib/azure_mgmt_network/models/usage_name.rb +0 -66
- data/lib/azure_mgmt_network/models/usages_list_result.rb +0 -76
- data/lib/azure_mgmt_network/models/virtual_network.rb +0 -102
- data/lib/azure_mgmt_network/models/virtual_network_gateway.rb +0 -102
- data/lib/azure_mgmt_network/models/virtual_network_gateway_connection.rb +0 -102
- data/lib/azure_mgmt_network/models/virtual_network_gateway_connection_list_result.rb +0 -87
- data/lib/azure_mgmt_network/models/virtual_network_gateway_connection_properties_format.rb +0 -218
- data/lib/azure_mgmt_network/models/virtual_network_gateway_ipconfiguration.rb +0 -88
- data/lib/azure_mgmt_network/models/virtual_network_gateway_ipconfiguration_properties_format.rb +0 -114
- data/lib/azure_mgmt_network/models/virtual_network_gateway_list_result.rb +0 -86
- data/lib/azure_mgmt_network/models/virtual_network_gateway_properties_format.rb +0 -205
- data/lib/azure_mgmt_network/models/virtual_network_gateway_sku.rb +0 -86
- data/lib/azure_mgmt_network/models/virtual_network_list_result.rb +0 -86
- data/lib/azure_mgmt_network/models/virtual_network_properties_format.rb +0 -131
- data/lib/azure_mgmt_network/models/vpn_client_configuration.rb +0 -125
- data/lib/azure_mgmt_network/models/vpn_client_parameters.rb +0 -60
- data/lib/azure_mgmt_network/models/vpn_client_revoked_certificate.rb +0 -88
- data/lib/azure_mgmt_network/models/vpn_client_revoked_certificate_properties_format.rb +0 -69
- data/lib/azure_mgmt_network/models/vpn_client_root_certificate.rb +0 -88
- data/lib/azure_mgmt_network/models/vpn_client_root_certificate_properties_format.rb +0 -66
@@ -31,10 +31,24 @@ module Azure::ARM::Network
|
|
31
31
|
#
|
32
32
|
# @param resource_group_name [String] The name of the resource group.
|
33
33
|
# @param circuit_name [String] The name of the express route Circuit.
|
34
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
35
|
+
# will be added to the HTTP request.
|
36
|
+
#
|
37
|
+
def delete(resource_group_name, circuit_name, custom_headers = nil)
|
38
|
+
response = delete_async(resource_group_name, circuit_name, custom_headers).value!
|
39
|
+
nil
|
40
|
+
end
|
41
|
+
|
42
|
+
#
|
43
|
+
# @param resource_group_name [String] The name of the resource group.
|
44
|
+
# @param circuit_name [String] The name of the express route Circuit.
|
45
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
46
|
+
# will be added to the HTTP request.
|
47
|
+
#
|
34
48
|
# @return [Concurrent::Promise] promise which provides async access to http
|
35
49
|
# response.
|
36
50
|
#
|
37
|
-
def
|
51
|
+
def delete_async(resource_group_name, circuit_name, custom_headers = nil)
|
38
52
|
# Send request
|
39
53
|
promise = begin_delete_async(resource_group_name, circuit_name, custom_headers)
|
40
54
|
|
@@ -43,8 +57,8 @@ module Azure::ARM::Network
|
|
43
57
|
deserialize_method = lambda do |parsed_response|
|
44
58
|
end
|
45
59
|
|
46
|
-
|
47
|
-
|
60
|
+
# Waiting for response.
|
61
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
48
62
|
end
|
49
63
|
|
50
64
|
promise
|
@@ -96,6 +110,8 @@ module Azure::ARM::Network
|
|
96
110
|
fail ArgumentError, 'circuit_name is nil' if circuit_name.nil?
|
97
111
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
98
112
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
113
|
+
|
114
|
+
|
99
115
|
request_headers = {}
|
100
116
|
|
101
117
|
# Set Headers
|
@@ -181,6 +197,8 @@ module Azure::ARM::Network
|
|
181
197
|
fail ArgumentError, 'circuit_name is nil' if circuit_name.nil?
|
182
198
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
183
199
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
200
|
+
|
201
|
+
|
184
202
|
request_headers = {}
|
185
203
|
|
186
204
|
# Set Headers
|
@@ -216,10 +234,8 @@ module Azure::ARM::Network
|
|
216
234
|
if status_code == 200
|
217
235
|
begin
|
218
236
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
219
|
-
|
220
|
-
|
221
|
-
end
|
222
|
-
result.body = parsed_response
|
237
|
+
result_mapper = ExpressRouteCircuit.mapper()
|
238
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
223
239
|
rescue Exception => e
|
224
240
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
225
241
|
end
|
@@ -238,26 +254,36 @@ module Azure::ARM::Network
|
|
238
254
|
# @param circuit_name [String] The name of the circuit.
|
239
255
|
# @param parameters [ExpressRouteCircuit] Parameters supplied to the
|
240
256
|
# create/delete ExpressRouteCircuit operation
|
241
|
-
# @param
|
242
|
-
#
|
243
|
-
#
|
244
|
-
#
|
245
|
-
#
|
246
|
-
|
257
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
258
|
+
# will be added to the HTTP request.
|
259
|
+
#
|
260
|
+
# @return [ExpressRouteCircuit] operation results.
|
261
|
+
#
|
262
|
+
def create_or_update(resource_group_name, circuit_name, parameters, custom_headers = nil)
|
263
|
+
response = create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers).value!
|
264
|
+
response.body unless response.nil?
|
265
|
+
end
|
266
|
+
|
267
|
+
#
|
268
|
+
# @param resource_group_name [String] The name of the resource group.
|
269
|
+
# @param circuit_name [String] The name of the circuit.
|
270
|
+
# @param parameters [ExpressRouteCircuit] Parameters supplied to the
|
271
|
+
# create/delete ExpressRouteCircuit operation
|
272
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
273
|
+
# will be added to the HTTP request.
|
247
274
|
#
|
248
275
|
# @return [Concurrent::Promise] promise which provides async access to http
|
249
276
|
# response.
|
250
277
|
#
|
251
|
-
def
|
278
|
+
def create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers = nil)
|
252
279
|
# Send request
|
253
280
|
promise = begin_create_or_update_async(resource_group_name, circuit_name, parameters, custom_headers)
|
254
281
|
|
255
282
|
promise = promise.then do |response|
|
256
283
|
# Defining deserialization method.
|
257
284
|
deserialize_method = lambda do |parsed_response|
|
258
|
-
|
259
|
-
|
260
|
-
end
|
285
|
+
result_mapper = ExpressRouteCircuit.mapper()
|
286
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response')
|
261
287
|
end
|
262
288
|
|
263
289
|
# Waiting for response.
|
@@ -316,21 +342,23 @@ module Azure::ARM::Network
|
|
316
342
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
317
343
|
fail ArgumentError, 'circuit_name is nil' if circuit_name.nil?
|
318
344
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
319
|
-
parameters.validate unless parameters.nil?
|
320
345
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
321
346
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
347
|
+
|
348
|
+
|
322
349
|
request_headers = {}
|
323
350
|
|
324
351
|
# Set Headers
|
325
352
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
326
353
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
327
354
|
|
328
|
-
# Serialize Request
|
329
355
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
request_content =
|
356
|
+
|
357
|
+
# Serialize Request
|
358
|
+
request_mapper = ExpressRouteCircuit.mapper()
|
359
|
+
request_content = @client.serialize(request_mapper, parameters, 'parameters')
|
360
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
361
|
+
|
334
362
|
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}'
|
335
363
|
options = {
|
336
364
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
@@ -362,10 +390,8 @@ module Azure::ARM::Network
|
|
362
390
|
if status_code == 201
|
363
391
|
begin
|
364
392
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
365
|
-
|
366
|
-
|
367
|
-
end
|
368
|
-
result.body = parsed_response
|
393
|
+
result_mapper = ExpressRouteCircuit.mapper()
|
394
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
369
395
|
rescue Exception => e
|
370
396
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
371
397
|
end
|
@@ -374,10 +400,8 @@ module Azure::ARM::Network
|
|
374
400
|
if status_code == 200
|
375
401
|
begin
|
376
402
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
377
|
-
|
378
|
-
|
379
|
-
end
|
380
|
-
result.body = parsed_response
|
403
|
+
result_mapper = ExpressRouteCircuit.mapper()
|
404
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
381
405
|
rescue Exception => e
|
382
406
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
383
407
|
end
|
@@ -398,23 +422,40 @@ module Azure::ARM::Network
|
|
398
422
|
# @param circuit_name [String] The name of the circuit.
|
399
423
|
# @param peering_name [String] The name of the peering.
|
400
424
|
# @param device_path [String] The path of the device.
|
425
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
426
|
+
# will be added to the HTTP request.
|
427
|
+
#
|
428
|
+
# @return [ExpressRouteCircuitsArpTableListResult] operation results.
|
429
|
+
#
|
430
|
+
def list_arp_table(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil)
|
431
|
+
response = list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers).value!
|
432
|
+
response.body unless response.nil?
|
433
|
+
end
|
434
|
+
|
435
|
+
#
|
436
|
+
# @param resource_group_name [String] The name of the resource group.
|
437
|
+
# @param circuit_name [String] The name of the circuit.
|
438
|
+
# @param peering_name [String] The name of the peering.
|
439
|
+
# @param device_path [String] The path of the device.
|
440
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
441
|
+
# will be added to the HTTP request.
|
442
|
+
#
|
401
443
|
# @return [Concurrent::Promise] promise which provides async access to http
|
402
444
|
# response.
|
403
445
|
#
|
404
|
-
def
|
446
|
+
def list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil)
|
405
447
|
# Send request
|
406
448
|
promise = begin_list_arp_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers)
|
407
449
|
|
408
450
|
promise = promise.then do |response|
|
409
451
|
# Defining deserialization method.
|
410
452
|
deserialize_method = lambda do |parsed_response|
|
411
|
-
|
412
|
-
|
413
|
-
end
|
453
|
+
result_mapper = ExpressRouteCircuitsArpTableListResult.mapper()
|
454
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response')
|
414
455
|
end
|
415
456
|
|
416
|
-
|
417
|
-
|
457
|
+
# Waiting for response.
|
458
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
418
459
|
end
|
419
460
|
|
420
461
|
promise
|
@@ -478,6 +519,8 @@ module Azure::ARM::Network
|
|
478
519
|
fail ArgumentError, 'device_path is nil' if device_path.nil?
|
479
520
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
480
521
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
522
|
+
|
523
|
+
|
481
524
|
request_headers = {}
|
482
525
|
|
483
526
|
# Set Headers
|
@@ -513,10 +556,8 @@ module Azure::ARM::Network
|
|
513
556
|
if status_code == 200
|
514
557
|
begin
|
515
558
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
516
|
-
|
517
|
-
|
518
|
-
end
|
519
|
-
result.body = parsed_response
|
559
|
+
result_mapper = ExpressRouteCircuitsArpTableListResult.mapper()
|
560
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
520
561
|
rescue Exception => e
|
521
562
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
522
563
|
end
|
@@ -537,23 +578,40 @@ module Azure::ARM::Network
|
|
537
578
|
# @param circuit_name [String] The name of the circuit.
|
538
579
|
# @param peering_name [String] The name of the peering.
|
539
580
|
# @param device_path [String] The path of the device.
|
581
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
582
|
+
# will be added to the HTTP request.
|
583
|
+
#
|
584
|
+
# @return [ExpressRouteCircuitsRoutesTableListResult] operation results.
|
585
|
+
#
|
586
|
+
def list_routes_table(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil)
|
587
|
+
response = list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers).value!
|
588
|
+
response.body unless response.nil?
|
589
|
+
end
|
590
|
+
|
591
|
+
#
|
592
|
+
# @param resource_group_name [String] The name of the resource group.
|
593
|
+
# @param circuit_name [String] The name of the circuit.
|
594
|
+
# @param peering_name [String] The name of the peering.
|
595
|
+
# @param device_path [String] The path of the device.
|
596
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
597
|
+
# will be added to the HTTP request.
|
598
|
+
#
|
540
599
|
# @return [Concurrent::Promise] promise which provides async access to http
|
541
600
|
# response.
|
542
601
|
#
|
543
|
-
def
|
602
|
+
def list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil)
|
544
603
|
# Send request
|
545
604
|
promise = begin_list_routes_table_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers)
|
546
605
|
|
547
606
|
promise = promise.then do |response|
|
548
607
|
# Defining deserialization method.
|
549
608
|
deserialize_method = lambda do |parsed_response|
|
550
|
-
|
551
|
-
|
552
|
-
end
|
609
|
+
result_mapper = ExpressRouteCircuitsRoutesTableListResult.mapper()
|
610
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response')
|
553
611
|
end
|
554
612
|
|
555
|
-
|
556
|
-
|
613
|
+
# Waiting for response.
|
614
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
557
615
|
end
|
558
616
|
|
559
617
|
promise
|
@@ -617,12 +675,14 @@ module Azure::ARM::Network
|
|
617
675
|
fail ArgumentError, 'device_path is nil' if device_path.nil?
|
618
676
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
619
677
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
678
|
+
|
679
|
+
|
620
680
|
request_headers = {}
|
621
681
|
|
622
682
|
# Set Headers
|
623
683
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
624
684
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
625
|
-
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}/
|
685
|
+
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}/routeTables/{devicePath}'
|
626
686
|
options = {
|
627
687
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
628
688
|
path_params: {'resourceGroupName' => resource_group_name,'circuitName' => circuit_name,'peeringName' => peering_name,'devicePath' => device_path,'subscriptionId' => @client.subscription_id},
|
@@ -652,10 +712,8 @@ module Azure::ARM::Network
|
|
652
712
|
if status_code == 200
|
653
713
|
begin
|
654
714
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
655
|
-
|
656
|
-
|
657
|
-
end
|
658
|
-
result.body = parsed_response
|
715
|
+
result_mapper = ExpressRouteCircuitsRoutesTableListResult.mapper()
|
716
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
659
717
|
rescue Exception => e
|
660
718
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
661
719
|
end
|
@@ -676,23 +734,40 @@ module Azure::ARM::Network
|
|
676
734
|
# @param circuit_name [String] The name of the circuit.
|
677
735
|
# @param peering_name [String] The name of the peering.
|
678
736
|
# @param device_path [String] The path of the device.
|
737
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
738
|
+
# will be added to the HTTP request.
|
739
|
+
#
|
740
|
+
# @return [ExpressRouteCircuitsRoutesTableSummaryListResult] operation results.
|
741
|
+
#
|
742
|
+
def list_routes_table_summary(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil)
|
743
|
+
response = list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers).value!
|
744
|
+
response.body unless response.nil?
|
745
|
+
end
|
746
|
+
|
747
|
+
#
|
748
|
+
# @param resource_group_name [String] The name of the resource group.
|
749
|
+
# @param circuit_name [String] The name of the circuit.
|
750
|
+
# @param peering_name [String] The name of the peering.
|
751
|
+
# @param device_path [String] The path of the device.
|
752
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
753
|
+
# will be added to the HTTP request.
|
754
|
+
#
|
679
755
|
# @return [Concurrent::Promise] promise which provides async access to http
|
680
756
|
# response.
|
681
757
|
#
|
682
|
-
def
|
758
|
+
def list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers = nil)
|
683
759
|
# Send request
|
684
760
|
promise = begin_list_routes_table_summary_async(resource_group_name, circuit_name, peering_name, device_path, custom_headers)
|
685
761
|
|
686
762
|
promise = promise.then do |response|
|
687
763
|
# Defining deserialization method.
|
688
764
|
deserialize_method = lambda do |parsed_response|
|
689
|
-
|
690
|
-
|
691
|
-
end
|
765
|
+
result_mapper = ExpressRouteCircuitsRoutesTableSummaryListResult.mapper()
|
766
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response')
|
692
767
|
end
|
693
768
|
|
694
|
-
|
695
|
-
|
769
|
+
# Waiting for response.
|
770
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
696
771
|
end
|
697
772
|
|
698
773
|
promise
|
@@ -756,6 +831,8 @@ module Azure::ARM::Network
|
|
756
831
|
fail ArgumentError, 'device_path is nil' if device_path.nil?
|
757
832
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
758
833
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
834
|
+
|
835
|
+
|
759
836
|
request_headers = {}
|
760
837
|
|
761
838
|
# Set Headers
|
@@ -791,10 +868,8 @@ module Azure::ARM::Network
|
|
791
868
|
if status_code == 200
|
792
869
|
begin
|
793
870
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
794
|
-
|
795
|
-
|
796
|
-
end
|
797
|
-
result.body = parsed_response
|
871
|
+
result_mapper = ExpressRouteCircuitsRoutesTableSummaryListResult.mapper()
|
872
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
798
873
|
rescue Exception => e
|
799
874
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
800
875
|
end
|
@@ -853,6 +928,8 @@ module Azure::ARM::Network
|
|
853
928
|
fail ArgumentError, 'circuit_name is nil' if circuit_name.nil?
|
854
929
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
855
930
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
931
|
+
|
932
|
+
|
856
933
|
request_headers = {}
|
857
934
|
|
858
935
|
# Set Headers
|
@@ -888,10 +965,8 @@ module Azure::ARM::Network
|
|
888
965
|
if status_code == 200
|
889
966
|
begin
|
890
967
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
891
|
-
|
892
|
-
|
893
|
-
end
|
894
|
-
result.body = parsed_response
|
968
|
+
result_mapper = ExpressRouteCircuitStats.mapper()
|
969
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
895
970
|
rescue Exception => e
|
896
971
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
897
972
|
end
|
@@ -954,6 +1029,8 @@ module Azure::ARM::Network
|
|
954
1029
|
fail ArgumentError, 'peering_name is nil' if peering_name.nil?
|
955
1030
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
956
1031
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
1032
|
+
|
1033
|
+
|
957
1034
|
request_headers = {}
|
958
1035
|
|
959
1036
|
# Set Headers
|
@@ -989,10 +1066,8 @@ module Azure::ARM::Network
|
|
989
1066
|
if status_code == 200
|
990
1067
|
begin
|
991
1068
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
992
|
-
|
993
|
-
|
994
|
-
end
|
995
|
-
result.body = parsed_response
|
1069
|
+
result_mapper = ExpressRouteCircuitStats.mapper()
|
1070
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
996
1071
|
rescue Exception => e
|
997
1072
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
998
1073
|
end
|
@@ -1012,11 +1087,33 @@ module Azure::ARM::Network
|
|
1012
1087
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1013
1088
|
# will be added to the HTTP request.
|
1014
1089
|
#
|
1015
|
-
# @return [ExpressRouteCircuitListResult]
|
1090
|
+
# @return [ExpressRouteCircuitListResult] which provide lazy access to pages
|
1091
|
+
# of the response.
|
1016
1092
|
#
|
1017
|
-
def
|
1093
|
+
def list_as_lazy(resource_group_name, custom_headers = nil)
|
1018
1094
|
response = list_async(resource_group_name, custom_headers).value!
|
1019
|
-
|
1095
|
+
unless response.nil?
|
1096
|
+
page = response.body
|
1097
|
+
page.next_method = Proc.new do |next_link|
|
1098
|
+
list_next_async(next_link, custom_headers)
|
1099
|
+
end
|
1100
|
+
page
|
1101
|
+
end
|
1102
|
+
end
|
1103
|
+
|
1104
|
+
#
|
1105
|
+
# The List ExpressRouteCircuit opertion retrieves all the ExpressRouteCircuits
|
1106
|
+
# in a resource group.
|
1107
|
+
#
|
1108
|
+
# @param resource_group_name [String] The name of the resource group.
|
1109
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1110
|
+
# will be added to the HTTP request.
|
1111
|
+
#
|
1112
|
+
# @return [Array<ExpressRouteCircuit>] operation results.
|
1113
|
+
#
|
1114
|
+
def list(resource_group_name, custom_headers = nil)
|
1115
|
+
first_page = list_as_lazy(resource_group_name, custom_headers)
|
1116
|
+
first_page.get_all_items
|
1020
1117
|
end
|
1021
1118
|
|
1022
1119
|
#
|
@@ -1047,6 +1144,8 @@ module Azure::ARM::Network
|
|
1047
1144
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
1048
1145
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
1049
1146
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
1147
|
+
|
1148
|
+
|
1050
1149
|
request_headers = {}
|
1051
1150
|
|
1052
1151
|
# Set Headers
|
@@ -1082,10 +1181,8 @@ module Azure::ARM::Network
|
|
1082
1181
|
if status_code == 200
|
1083
1182
|
begin
|
1084
1183
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1085
|
-
|
1086
|
-
|
1087
|
-
end
|
1088
|
-
result.body = parsed_response
|
1184
|
+
result_mapper = ExpressRouteCircuitListResult.mapper()
|
1185
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
1089
1186
|
rescue Exception => e
|
1090
1187
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1091
1188
|
end
|
@@ -1104,11 +1201,32 @@ module Azure::ARM::Network
|
|
1104
1201
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1105
1202
|
# will be added to the HTTP request.
|
1106
1203
|
#
|
1107
|
-
# @return [ExpressRouteCircuitListResult]
|
1204
|
+
# @return [ExpressRouteCircuitListResult] which provide lazy access to pages
|
1205
|
+
# of the response.
|
1108
1206
|
#
|
1109
|
-
def
|
1207
|
+
def list_all_as_lazy(custom_headers = nil)
|
1110
1208
|
response = list_all_async(custom_headers).value!
|
1111
|
-
|
1209
|
+
unless response.nil?
|
1210
|
+
page = response.body
|
1211
|
+
page.next_method = Proc.new do |next_link|
|
1212
|
+
list_all_next_async(next_link, custom_headers)
|
1213
|
+
end
|
1214
|
+
page
|
1215
|
+
end
|
1216
|
+
end
|
1217
|
+
|
1218
|
+
#
|
1219
|
+
# The List ExpressRouteCircuit opertion retrieves all the ExpressRouteCircuits
|
1220
|
+
# in a subscription.
|
1221
|
+
#
|
1222
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1223
|
+
# will be added to the HTTP request.
|
1224
|
+
#
|
1225
|
+
# @return [Array<ExpressRouteCircuit>] operation results.
|
1226
|
+
#
|
1227
|
+
def list_all(custom_headers = nil)
|
1228
|
+
first_page = list_all_as_lazy(custom_headers)
|
1229
|
+
first_page.get_all_items
|
1112
1230
|
end
|
1113
1231
|
|
1114
1232
|
#
|
@@ -1136,6 +1254,8 @@ module Azure::ARM::Network
|
|
1136
1254
|
def list_all_async(custom_headers = nil)
|
1137
1255
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
1138
1256
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
1257
|
+
|
1258
|
+
|
1139
1259
|
request_headers = {}
|
1140
1260
|
|
1141
1261
|
# Set Headers
|
@@ -1171,10 +1291,8 @@ module Azure::ARM::Network
|
|
1171
1291
|
if status_code == 200
|
1172
1292
|
begin
|
1173
1293
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1174
|
-
|
1175
|
-
|
1176
|
-
end
|
1177
|
-
result.body = parsed_response
|
1294
|
+
result_mapper = ExpressRouteCircuitListResult.mapper()
|
1295
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
1178
1296
|
rescue Exception => e
|
1179
1297
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1180
1298
|
end
|
@@ -1230,6 +1348,8 @@ module Azure::ARM::Network
|
|
1230
1348
|
#
|
1231
1349
|
def list_next_async(next_page_link, custom_headers = nil)
|
1232
1350
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
1351
|
+
|
1352
|
+
|
1233
1353
|
request_headers = {}
|
1234
1354
|
|
1235
1355
|
# Set Headers
|
@@ -1264,10 +1384,8 @@ module Azure::ARM::Network
|
|
1264
1384
|
if status_code == 200
|
1265
1385
|
begin
|
1266
1386
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1267
|
-
|
1268
|
-
|
1269
|
-
end
|
1270
|
-
result.body = parsed_response
|
1387
|
+
result_mapper = ExpressRouteCircuitListResult.mapper()
|
1388
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
1271
1389
|
rescue Exception => e
|
1272
1390
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1273
1391
|
end
|
@@ -1323,6 +1441,8 @@ module Azure::ARM::Network
|
|
1323
1441
|
#
|
1324
1442
|
def list_all_next_async(next_page_link, custom_headers = nil)
|
1325
1443
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
1444
|
+
|
1445
|
+
|
1326
1446
|
request_headers = {}
|
1327
1447
|
|
1328
1448
|
# Set Headers
|
@@ -1357,10 +1477,8 @@ module Azure::ARM::Network
|
|
1357
1477
|
if status_code == 200
|
1358
1478
|
begin
|
1359
1479
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1360
|
-
|
1361
|
-
|
1362
|
-
end
|
1363
|
-
result.body = parsed_response
|
1480
|
+
result_mapper = ExpressRouteCircuitListResult.mapper()
|
1481
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
1364
1482
|
rescue Exception => e
|
1365
1483
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1366
1484
|
end
|