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
data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/express_route_circuit_authorizations.rb
RENAMED
@@ -32,10 +32,25 @@ module Azure::ARM::Network
|
|
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
34
|
# @param authorization_name [String] The name of the authorization.
|
35
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
36
|
+
# will be added to the HTTP request.
|
37
|
+
#
|
38
|
+
def delete(resource_group_name, circuit_name, authorization_name, custom_headers = nil)
|
39
|
+
response = delete_async(resource_group_name, circuit_name, authorization_name, custom_headers).value!
|
40
|
+
nil
|
41
|
+
end
|
42
|
+
|
43
|
+
#
|
44
|
+
# @param resource_group_name [String] The name of the resource group.
|
45
|
+
# @param circuit_name [String] The name of the express route circuit.
|
46
|
+
# @param authorization_name [String] The name of the authorization.
|
47
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
48
|
+
# will be added to the HTTP request.
|
49
|
+
#
|
35
50
|
# @return [Concurrent::Promise] promise which provides async access to http
|
36
51
|
# response.
|
37
52
|
#
|
38
|
-
def
|
53
|
+
def delete_async(resource_group_name, circuit_name, authorization_name, custom_headers = nil)
|
39
54
|
# Send request
|
40
55
|
promise = begin_delete_async(resource_group_name, circuit_name, authorization_name, custom_headers)
|
41
56
|
|
@@ -44,8 +59,8 @@ module Azure::ARM::Network
|
|
44
59
|
deserialize_method = lambda do |parsed_response|
|
45
60
|
end
|
46
61
|
|
47
|
-
|
48
|
-
|
62
|
+
# Waiting for response.
|
63
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
49
64
|
end
|
50
65
|
|
51
66
|
promise
|
@@ -101,6 +116,8 @@ module Azure::ARM::Network
|
|
101
116
|
fail ArgumentError, 'authorization_name is nil' if authorization_name.nil?
|
102
117
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
103
118
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
119
|
+
|
120
|
+
|
104
121
|
request_headers = {}
|
105
122
|
|
106
123
|
# Set Headers
|
@@ -190,6 +207,8 @@ module Azure::ARM::Network
|
|
190
207
|
fail ArgumentError, 'authorization_name is nil' if authorization_name.nil?
|
191
208
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
192
209
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
210
|
+
|
211
|
+
|
193
212
|
request_headers = {}
|
194
213
|
|
195
214
|
# Set Headers
|
@@ -225,10 +244,8 @@ module Azure::ARM::Network
|
|
225
244
|
if status_code == 200
|
226
245
|
begin
|
227
246
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
228
|
-
|
229
|
-
|
230
|
-
end
|
231
|
-
result.body = parsed_response
|
247
|
+
result_mapper = ExpressRouteCircuitAuthorization.mapper()
|
248
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
232
249
|
rescue Exception => e
|
233
250
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
234
251
|
end
|
@@ -250,26 +267,38 @@ module Azure::ARM::Network
|
|
250
267
|
# @param authorization_parameters [ExpressRouteCircuitAuthorization]
|
251
268
|
# Parameters supplied to the create/update ExpressRouteCircuitAuthorization
|
252
269
|
# operation
|
253
|
-
# @param
|
254
|
-
#
|
255
|
-
#
|
256
|
-
#
|
257
|
-
#
|
258
|
-
|
270
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
271
|
+
# will be added to the HTTP request.
|
272
|
+
#
|
273
|
+
# @return [ExpressRouteCircuitAuthorization] operation results.
|
274
|
+
#
|
275
|
+
def create_or_update(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers = nil)
|
276
|
+
response = create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers).value!
|
277
|
+
response.body unless response.nil?
|
278
|
+
end
|
279
|
+
|
280
|
+
#
|
281
|
+
# @param resource_group_name [String] The name of the resource group.
|
282
|
+
# @param circuit_name [String] The name of the express route circuit.
|
283
|
+
# @param authorization_name [String] The name of the authorization.
|
284
|
+
# @param authorization_parameters [ExpressRouteCircuitAuthorization]
|
285
|
+
# Parameters supplied to the create/update ExpressRouteCircuitAuthorization
|
286
|
+
# operation
|
287
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
288
|
+
# will be added to the HTTP request.
|
259
289
|
#
|
260
290
|
# @return [Concurrent::Promise] promise which provides async access to http
|
261
291
|
# response.
|
262
292
|
#
|
263
|
-
def
|
293
|
+
def create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers = nil)
|
264
294
|
# Send request
|
265
295
|
promise = begin_create_or_update_async(resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers)
|
266
296
|
|
267
297
|
promise = promise.then do |response|
|
268
298
|
# Defining deserialization method.
|
269
299
|
deserialize_method = lambda do |parsed_response|
|
270
|
-
|
271
|
-
|
272
|
-
end
|
300
|
+
result_mapper = ExpressRouteCircuitAuthorization.mapper()
|
301
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response')
|
273
302
|
end
|
274
303
|
|
275
304
|
# Waiting for response.
|
@@ -338,21 +367,23 @@ module Azure::ARM::Network
|
|
338
367
|
fail ArgumentError, 'circuit_name is nil' if circuit_name.nil?
|
339
368
|
fail ArgumentError, 'authorization_name is nil' if authorization_name.nil?
|
340
369
|
fail ArgumentError, 'authorization_parameters is nil' if authorization_parameters.nil?
|
341
|
-
authorization_parameters.validate unless authorization_parameters.nil?
|
342
370
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
343
371
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
372
|
+
|
373
|
+
|
344
374
|
request_headers = {}
|
345
375
|
|
346
376
|
# Set Headers
|
347
377
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
348
378
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
349
379
|
|
350
|
-
# Serialize Request
|
351
380
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
request_content =
|
381
|
+
|
382
|
+
# Serialize Request
|
383
|
+
request_mapper = ExpressRouteCircuitAuthorization.mapper()
|
384
|
+
request_content = @client.serialize(request_mapper, authorization_parameters, 'authorization_parameters')
|
385
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
386
|
+
|
356
387
|
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/authorizations/{authorizationName}'
|
357
388
|
options = {
|
358
389
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
@@ -384,10 +415,8 @@ module Azure::ARM::Network
|
|
384
415
|
if status_code == 201
|
385
416
|
begin
|
386
417
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
387
|
-
|
388
|
-
|
389
|
-
end
|
390
|
-
result.body = parsed_response
|
418
|
+
result_mapper = ExpressRouteCircuitAuthorization.mapper()
|
419
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
391
420
|
rescue Exception => e
|
392
421
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
393
422
|
end
|
@@ -396,10 +425,8 @@ module Azure::ARM::Network
|
|
396
425
|
if status_code == 200
|
397
426
|
begin
|
398
427
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
399
|
-
|
400
|
-
|
401
|
-
end
|
402
|
-
result.body = parsed_response
|
428
|
+
result_mapper = ExpressRouteCircuitAuthorization.mapper()
|
429
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
403
430
|
rescue Exception => e
|
404
431
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
405
432
|
end
|
@@ -420,11 +447,34 @@ module Azure::ARM::Network
|
|
420
447
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
421
448
|
# will be added to the HTTP request.
|
422
449
|
#
|
423
|
-
# @return [AuthorizationListResult]
|
450
|
+
# @return [AuthorizationListResult] which provide lazy access to pages of the
|
451
|
+
# response.
|
424
452
|
#
|
425
|
-
def
|
453
|
+
def list_as_lazy(resource_group_name, circuit_name, custom_headers = nil)
|
426
454
|
response = list_async(resource_group_name, circuit_name, custom_headers).value!
|
427
|
-
|
455
|
+
unless response.nil?
|
456
|
+
page = response.body
|
457
|
+
page.next_method = Proc.new do |next_link|
|
458
|
+
list_next_async(next_link, custom_headers)
|
459
|
+
end
|
460
|
+
page
|
461
|
+
end
|
462
|
+
end
|
463
|
+
|
464
|
+
#
|
465
|
+
# The List authorization operation retrieves all the authorizations in an
|
466
|
+
# ExpressRouteCircuit.
|
467
|
+
#
|
468
|
+
# @param resource_group_name [String] The name of the resource group.
|
469
|
+
# @param circuit_name [String] The name of the curcuit.
|
470
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
471
|
+
# will be added to the HTTP request.
|
472
|
+
#
|
473
|
+
# @return [Array<ExpressRouteCircuitAuthorization>] operation results.
|
474
|
+
#
|
475
|
+
def list(resource_group_name, circuit_name, custom_headers = nil)
|
476
|
+
first_page = list_as_lazy(resource_group_name, circuit_name, custom_headers)
|
477
|
+
first_page.get_all_items
|
428
478
|
end
|
429
479
|
|
430
480
|
#
|
@@ -458,6 +508,8 @@ module Azure::ARM::Network
|
|
458
508
|
fail ArgumentError, 'circuit_name is nil' if circuit_name.nil?
|
459
509
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
460
510
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
511
|
+
|
512
|
+
|
461
513
|
request_headers = {}
|
462
514
|
|
463
515
|
# Set Headers
|
@@ -493,10 +545,8 @@ module Azure::ARM::Network
|
|
493
545
|
if status_code == 200
|
494
546
|
begin
|
495
547
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
496
|
-
|
497
|
-
|
498
|
-
end
|
499
|
-
result.body = parsed_response
|
548
|
+
result_mapper = AuthorizationListResult.mapper()
|
549
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
500
550
|
rescue Exception => e
|
501
551
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
502
552
|
end
|
@@ -552,6 +602,8 @@ module Azure::ARM::Network
|
|
552
602
|
#
|
553
603
|
def list_next_async(next_page_link, custom_headers = nil)
|
554
604
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
605
|
+
|
606
|
+
|
555
607
|
request_headers = {}
|
556
608
|
|
557
609
|
# Set Headers
|
@@ -586,10 +638,8 @@ module Azure::ARM::Network
|
|
586
638
|
if status_code == 200
|
587
639
|
begin
|
588
640
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
589
|
-
|
590
|
-
|
591
|
-
end
|
592
|
-
result.body = parsed_response
|
641
|
+
result_mapper = AuthorizationListResult.mapper()
|
642
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
593
643
|
rescue Exception => e
|
594
644
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
595
645
|
end
|
data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/express_route_circuit_peerings.rb
RENAMED
@@ -32,10 +32,25 @@ module Azure::ARM::Network
|
|
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
34
|
# @param peering_name [String] The name of the peering.
|
35
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
36
|
+
# will be added to the HTTP request.
|
37
|
+
#
|
38
|
+
def delete(resource_group_name, circuit_name, peering_name, custom_headers = nil)
|
39
|
+
response = delete_async(resource_group_name, circuit_name, peering_name, custom_headers).value!
|
40
|
+
nil
|
41
|
+
end
|
42
|
+
|
43
|
+
#
|
44
|
+
# @param resource_group_name [String] The name of the resource group.
|
45
|
+
# @param circuit_name [String] The name of the express route circuit.
|
46
|
+
# @param peering_name [String] The name of the peering.
|
47
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
48
|
+
# will be added to the HTTP request.
|
49
|
+
#
|
35
50
|
# @return [Concurrent::Promise] promise which provides async access to http
|
36
51
|
# response.
|
37
52
|
#
|
38
|
-
def
|
53
|
+
def delete_async(resource_group_name, circuit_name, peering_name, custom_headers = nil)
|
39
54
|
# Send request
|
40
55
|
promise = begin_delete_async(resource_group_name, circuit_name, peering_name, custom_headers)
|
41
56
|
|
@@ -44,8 +59,8 @@ module Azure::ARM::Network
|
|
44
59
|
deserialize_method = lambda do |parsed_response|
|
45
60
|
end
|
46
61
|
|
47
|
-
|
48
|
-
|
62
|
+
# Waiting for response.
|
63
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
49
64
|
end
|
50
65
|
|
51
66
|
promise
|
@@ -101,6 +116,8 @@ module Azure::ARM::Network
|
|
101
116
|
fail ArgumentError, 'peering_name is nil' if peering_name.nil?
|
102
117
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
103
118
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
119
|
+
|
120
|
+
|
104
121
|
request_headers = {}
|
105
122
|
|
106
123
|
# Set Headers
|
@@ -190,6 +207,8 @@ module Azure::ARM::Network
|
|
190
207
|
fail ArgumentError, 'peering_name is nil' if peering_name.nil?
|
191
208
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
192
209
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
210
|
+
|
211
|
+
|
193
212
|
request_headers = {}
|
194
213
|
|
195
214
|
# Set Headers
|
@@ -225,10 +244,8 @@ module Azure::ARM::Network
|
|
225
244
|
if status_code == 200
|
226
245
|
begin
|
227
246
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
228
|
-
|
229
|
-
|
230
|
-
end
|
231
|
-
result.body = parsed_response
|
247
|
+
result_mapper = ExpressRouteCircuitPeering.mapper()
|
248
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
232
249
|
rescue Exception => e
|
233
250
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
234
251
|
end
|
@@ -249,26 +266,37 @@ module Azure::ARM::Network
|
|
249
266
|
# @param peering_name [String] The name of the peering.
|
250
267
|
# @param peering_parameters [ExpressRouteCircuitPeering] Parameters supplied
|
251
268
|
# to the create/update ExpressRouteCircuit Peering operation
|
252
|
-
# @param
|
253
|
-
#
|
254
|
-
#
|
255
|
-
#
|
256
|
-
#
|
257
|
-
|
269
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
270
|
+
# will be added to the HTTP request.
|
271
|
+
#
|
272
|
+
# @return [ExpressRouteCircuitPeering] operation results.
|
273
|
+
#
|
274
|
+
def create_or_update(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers = nil)
|
275
|
+
response = create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers).value!
|
276
|
+
response.body unless response.nil?
|
277
|
+
end
|
278
|
+
|
279
|
+
#
|
280
|
+
# @param resource_group_name [String] The name of the resource group.
|
281
|
+
# @param circuit_name [String] The name of the express route circuit.
|
282
|
+
# @param peering_name [String] The name of the peering.
|
283
|
+
# @param peering_parameters [ExpressRouteCircuitPeering] Parameters supplied
|
284
|
+
# to the create/update ExpressRouteCircuit Peering operation
|
285
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
286
|
+
# will be added to the HTTP request.
|
258
287
|
#
|
259
288
|
# @return [Concurrent::Promise] promise which provides async access to http
|
260
289
|
# response.
|
261
290
|
#
|
262
|
-
def
|
291
|
+
def create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers = nil)
|
263
292
|
# Send request
|
264
293
|
promise = begin_create_or_update_async(resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers)
|
265
294
|
|
266
295
|
promise = promise.then do |response|
|
267
296
|
# Defining deserialization method.
|
268
297
|
deserialize_method = lambda do |parsed_response|
|
269
|
-
|
270
|
-
|
271
|
-
end
|
298
|
+
result_mapper = ExpressRouteCircuitPeering.mapper()
|
299
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response')
|
272
300
|
end
|
273
301
|
|
274
302
|
# Waiting for response.
|
@@ -334,21 +362,23 @@ module Azure::ARM::Network
|
|
334
362
|
fail ArgumentError, 'circuit_name is nil' if circuit_name.nil?
|
335
363
|
fail ArgumentError, 'peering_name is nil' if peering_name.nil?
|
336
364
|
fail ArgumentError, 'peering_parameters is nil' if peering_parameters.nil?
|
337
|
-
peering_parameters.validate unless peering_parameters.nil?
|
338
365
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
339
366
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
367
|
+
|
368
|
+
|
340
369
|
request_headers = {}
|
341
370
|
|
342
371
|
# Set Headers
|
343
372
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
344
373
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
345
374
|
|
346
|
-
# Serialize Request
|
347
375
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
request_content =
|
376
|
+
|
377
|
+
# Serialize Request
|
378
|
+
request_mapper = ExpressRouteCircuitPeering.mapper()
|
379
|
+
request_content = @client.serialize(request_mapper, peering_parameters, 'peering_parameters')
|
380
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
381
|
+
|
352
382
|
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}'
|
353
383
|
options = {
|
354
384
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
@@ -380,10 +410,8 @@ module Azure::ARM::Network
|
|
380
410
|
if status_code == 200
|
381
411
|
begin
|
382
412
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
383
|
-
|
384
|
-
|
385
|
-
end
|
386
|
-
result.body = parsed_response
|
413
|
+
result_mapper = ExpressRouteCircuitPeering.mapper()
|
414
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
387
415
|
rescue Exception => e
|
388
416
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
389
417
|
end
|
@@ -392,10 +420,8 @@ module Azure::ARM::Network
|
|
392
420
|
if status_code == 201
|
393
421
|
begin
|
394
422
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
395
|
-
|
396
|
-
|
397
|
-
end
|
398
|
-
result.body = parsed_response
|
423
|
+
result_mapper = ExpressRouteCircuitPeering.mapper()
|
424
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
399
425
|
rescue Exception => e
|
400
426
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
401
427
|
end
|
@@ -416,11 +442,34 @@ module Azure::ARM::Network
|
|
416
442
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
417
443
|
# will be added to the HTTP request.
|
418
444
|
#
|
419
|
-
# @return [ExpressRouteCircuitPeeringListResult]
|
445
|
+
# @return [ExpressRouteCircuitPeeringListResult] which provide lazy access to
|
446
|
+
# pages of the response.
|
420
447
|
#
|
421
|
-
def
|
448
|
+
def list_as_lazy(resource_group_name, circuit_name, custom_headers = nil)
|
422
449
|
response = list_async(resource_group_name, circuit_name, custom_headers).value!
|
423
|
-
|
450
|
+
unless response.nil?
|
451
|
+
page = response.body
|
452
|
+
page.next_method = Proc.new do |next_link|
|
453
|
+
list_next_async(next_link, custom_headers)
|
454
|
+
end
|
455
|
+
page
|
456
|
+
end
|
457
|
+
end
|
458
|
+
|
459
|
+
#
|
460
|
+
# The List peering operation retrieves all the peerings in an
|
461
|
+
# ExpressRouteCircuit.
|
462
|
+
#
|
463
|
+
# @param resource_group_name [String] The name of the resource group.
|
464
|
+
# @param circuit_name [String] The name of the curcuit.
|
465
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
466
|
+
# will be added to the HTTP request.
|
467
|
+
#
|
468
|
+
# @return [Array<ExpressRouteCircuitPeering>] operation results.
|
469
|
+
#
|
470
|
+
def list(resource_group_name, circuit_name, custom_headers = nil)
|
471
|
+
first_page = list_as_lazy(resource_group_name, circuit_name, custom_headers)
|
472
|
+
first_page.get_all_items
|
424
473
|
end
|
425
474
|
|
426
475
|
#
|
@@ -454,6 +503,8 @@ module Azure::ARM::Network
|
|
454
503
|
fail ArgumentError, 'circuit_name is nil' if circuit_name.nil?
|
455
504
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
456
505
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
506
|
+
|
507
|
+
|
457
508
|
request_headers = {}
|
458
509
|
|
459
510
|
# Set Headers
|
@@ -489,10 +540,8 @@ module Azure::ARM::Network
|
|
489
540
|
if status_code == 200
|
490
541
|
begin
|
491
542
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
492
|
-
|
493
|
-
|
494
|
-
end
|
495
|
-
result.body = parsed_response
|
543
|
+
result_mapper = ExpressRouteCircuitPeeringListResult.mapper()
|
544
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
496
545
|
rescue Exception => e
|
497
546
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
498
547
|
end
|
@@ -548,6 +597,8 @@ module Azure::ARM::Network
|
|
548
597
|
#
|
549
598
|
def list_next_async(next_page_link, custom_headers = nil)
|
550
599
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
600
|
+
|
601
|
+
|
551
602
|
request_headers = {}
|
552
603
|
|
553
604
|
# Set Headers
|
@@ -582,10 +633,8 @@ module Azure::ARM::Network
|
|
582
633
|
if status_code == 200
|
583
634
|
begin
|
584
635
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
585
|
-
|
586
|
-
|
587
|
-
end
|
588
|
-
result.body = parsed_response
|
636
|
+
result_mapper = ExpressRouteCircuitPeeringListResult.mapper()
|
637
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
589
638
|
rescue Exception => e
|
590
639
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
591
640
|
end
|