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
@@ -30,10 +30,24 @@ module Azure::ARM::Network
|
|
30
30
|
#
|
31
31
|
# @param resource_group_name [String] The name of the resource group.
|
32
32
|
# @param public_ip_address_name [String] The name of the subnet.
|
33
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
34
|
+
# will be added to the HTTP request.
|
35
|
+
#
|
36
|
+
def delete(resource_group_name, public_ip_address_name, custom_headers = nil)
|
37
|
+
response = delete_async(resource_group_name, public_ip_address_name, custom_headers).value!
|
38
|
+
nil
|
39
|
+
end
|
40
|
+
|
41
|
+
#
|
42
|
+
# @param resource_group_name [String] The name of the resource group.
|
43
|
+
# @param public_ip_address_name [String] The name of the subnet.
|
44
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
45
|
+
# will be added to the HTTP request.
|
46
|
+
#
|
33
47
|
# @return [Concurrent::Promise] promise which provides async access to http
|
34
48
|
# response.
|
35
49
|
#
|
36
|
-
def
|
50
|
+
def delete_async(resource_group_name, public_ip_address_name, custom_headers = nil)
|
37
51
|
# Send request
|
38
52
|
promise = begin_delete_async(resource_group_name, public_ip_address_name, custom_headers)
|
39
53
|
|
@@ -42,8 +56,8 @@ module Azure::ARM::Network
|
|
42
56
|
deserialize_method = lambda do |parsed_response|
|
43
57
|
end
|
44
58
|
|
45
|
-
|
46
|
-
|
59
|
+
# Waiting for response.
|
60
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
47
61
|
end
|
48
62
|
|
49
63
|
promise
|
@@ -92,6 +106,8 @@ module Azure::ARM::Network
|
|
92
106
|
fail ArgumentError, 'public_ip_address_name is nil' if public_ip_address_name.nil?
|
93
107
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
94
108
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
109
|
+
|
110
|
+
|
95
111
|
request_headers = {}
|
96
112
|
|
97
113
|
# Set Headers
|
@@ -180,6 +196,8 @@ module Azure::ARM::Network
|
|
180
196
|
fail ArgumentError, 'public_ip_address_name is nil' if public_ip_address_name.nil?
|
181
197
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
182
198
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
199
|
+
|
200
|
+
|
183
201
|
request_headers = {}
|
184
202
|
|
185
203
|
# Set Headers
|
@@ -215,10 +233,8 @@ module Azure::ARM::Network
|
|
215
233
|
if status_code == 200
|
216
234
|
begin
|
217
235
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
218
|
-
|
219
|
-
|
220
|
-
end
|
221
|
-
result.body = parsed_response
|
236
|
+
result_mapper = PublicIPAddress.mapper()
|
237
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
222
238
|
rescue Exception => e
|
223
239
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
224
240
|
end
|
@@ -238,26 +254,36 @@ module Azure::ARM::Network
|
|
238
254
|
# @param public_ip_address_name [String] The name of the publicIpAddress.
|
239
255
|
# @param parameters [PublicIPAddress] Parameters supplied to the create/update
|
240
256
|
# PublicIPAddress 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 [PublicIPAddress] operation results.
|
261
|
+
#
|
262
|
+
def create_or_update(resource_group_name, public_ip_address_name, parameters, custom_headers = nil)
|
263
|
+
response = create_or_update_async(resource_group_name, public_ip_address_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 public_ip_address_name [String] The name of the publicIpAddress.
|
270
|
+
# @param parameters [PublicIPAddress] Parameters supplied to the create/update
|
271
|
+
# PublicIPAddress 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, public_ip_address_name, parameters, custom_headers = nil)
|
252
279
|
# Send request
|
253
280
|
promise = begin_create_or_update_async(resource_group_name, public_ip_address_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 = PublicIPAddress.mapper()
|
286
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response')
|
261
287
|
end
|
262
288
|
|
263
289
|
# Waiting for response.
|
@@ -319,21 +345,23 @@ module Azure::ARM::Network
|
|
319
345
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
320
346
|
fail ArgumentError, 'public_ip_address_name is nil' if public_ip_address_name.nil?
|
321
347
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
322
|
-
parameters.validate unless parameters.nil?
|
323
348
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
324
349
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
350
|
+
|
351
|
+
|
325
352
|
request_headers = {}
|
326
353
|
|
327
354
|
# Set Headers
|
328
355
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
329
356
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
330
357
|
|
331
|
-
# Serialize Request
|
332
358
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
request_content =
|
359
|
+
|
360
|
+
# Serialize Request
|
361
|
+
request_mapper = PublicIPAddress.mapper()
|
362
|
+
request_content = @client.serialize(request_mapper, parameters, 'parameters')
|
363
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
364
|
+
|
337
365
|
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPAddresses/{publicIpAddressName}'
|
338
366
|
options = {
|
339
367
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
@@ -365,10 +393,8 @@ module Azure::ARM::Network
|
|
365
393
|
if status_code == 201
|
366
394
|
begin
|
367
395
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
368
|
-
|
369
|
-
|
370
|
-
end
|
371
|
-
result.body = parsed_response
|
396
|
+
result_mapper = PublicIPAddress.mapper()
|
397
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
372
398
|
rescue Exception => e
|
373
399
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
374
400
|
end
|
@@ -377,10 +403,8 @@ module Azure::ARM::Network
|
|
377
403
|
if status_code == 200
|
378
404
|
begin
|
379
405
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
380
|
-
|
381
|
-
|
382
|
-
end
|
383
|
-
result.body = parsed_response
|
406
|
+
result_mapper = PublicIPAddress.mapper()
|
407
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
384
408
|
rescue Exception => e
|
385
409
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
386
410
|
end
|
@@ -399,11 +423,32 @@ module Azure::ARM::Network
|
|
399
423
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
400
424
|
# will be added to the HTTP request.
|
401
425
|
#
|
402
|
-
# @return [PublicIPAddressListResult]
|
426
|
+
# @return [PublicIPAddressListResult] which provide lazy access to pages of
|
427
|
+
# the response.
|
403
428
|
#
|
404
|
-
def
|
429
|
+
def list_all_as_lazy(custom_headers = nil)
|
405
430
|
response = list_all_async(custom_headers).value!
|
406
|
-
|
431
|
+
unless response.nil?
|
432
|
+
page = response.body
|
433
|
+
page.next_method = Proc.new do |next_link|
|
434
|
+
list_all_next_async(next_link, custom_headers)
|
435
|
+
end
|
436
|
+
page
|
437
|
+
end
|
438
|
+
end
|
439
|
+
|
440
|
+
#
|
441
|
+
# The List publicIpAddress opertion retrieves all the publicIpAddresses in a
|
442
|
+
# subscription.
|
443
|
+
#
|
444
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
445
|
+
# will be added to the HTTP request.
|
446
|
+
#
|
447
|
+
# @return [Array<PublicIPAddress>] operation results.
|
448
|
+
#
|
449
|
+
def list_all(custom_headers = nil)
|
450
|
+
first_page = list_all_as_lazy(custom_headers)
|
451
|
+
first_page.get_all_items
|
407
452
|
end
|
408
453
|
|
409
454
|
#
|
@@ -431,6 +476,8 @@ module Azure::ARM::Network
|
|
431
476
|
def list_all_async(custom_headers = nil)
|
432
477
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
433
478
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
479
|
+
|
480
|
+
|
434
481
|
request_headers = {}
|
435
482
|
|
436
483
|
# Set Headers
|
@@ -466,10 +513,8 @@ module Azure::ARM::Network
|
|
466
513
|
if status_code == 200
|
467
514
|
begin
|
468
515
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
469
|
-
|
470
|
-
|
471
|
-
end
|
472
|
-
result.body = parsed_response
|
516
|
+
result_mapper = PublicIPAddressListResult.mapper()
|
517
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
473
518
|
rescue Exception => e
|
474
519
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
475
520
|
end
|
@@ -489,11 +534,33 @@ module Azure::ARM::Network
|
|
489
534
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
490
535
|
# will be added to the HTTP request.
|
491
536
|
#
|
492
|
-
# @return [PublicIPAddressListResult]
|
537
|
+
# @return [PublicIPAddressListResult] which provide lazy access to pages of
|
538
|
+
# the response.
|
493
539
|
#
|
494
|
-
def
|
540
|
+
def list_as_lazy(resource_group_name, custom_headers = nil)
|
495
541
|
response = list_async(resource_group_name, custom_headers).value!
|
496
|
-
|
542
|
+
unless response.nil?
|
543
|
+
page = response.body
|
544
|
+
page.next_method = Proc.new do |next_link|
|
545
|
+
list_next_async(next_link, custom_headers)
|
546
|
+
end
|
547
|
+
page
|
548
|
+
end
|
549
|
+
end
|
550
|
+
|
551
|
+
#
|
552
|
+
# The List publicIpAddress opertion retrieves all the publicIpAddresses in a
|
553
|
+
# resource group.
|
554
|
+
#
|
555
|
+
# @param resource_group_name [String] The name of the resource group.
|
556
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
557
|
+
# will be added to the HTTP request.
|
558
|
+
#
|
559
|
+
# @return [Array<PublicIPAddress>] operation results.
|
560
|
+
#
|
561
|
+
def list(resource_group_name, custom_headers = nil)
|
562
|
+
first_page = list_as_lazy(resource_group_name, custom_headers)
|
563
|
+
first_page.get_all_items
|
497
564
|
end
|
498
565
|
|
499
566
|
#
|
@@ -524,6 +591,8 @@ module Azure::ARM::Network
|
|
524
591
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
525
592
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
526
593
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
594
|
+
|
595
|
+
|
527
596
|
request_headers = {}
|
528
597
|
|
529
598
|
# Set Headers
|
@@ -559,10 +628,8 @@ module Azure::ARM::Network
|
|
559
628
|
if status_code == 200
|
560
629
|
begin
|
561
630
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
562
|
-
|
563
|
-
|
564
|
-
end
|
565
|
-
result.body = parsed_response
|
631
|
+
result_mapper = PublicIPAddressListResult.mapper()
|
632
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
566
633
|
rescue Exception => e
|
567
634
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
568
635
|
end
|
@@ -618,6 +685,8 @@ module Azure::ARM::Network
|
|
618
685
|
#
|
619
686
|
def list_all_next_async(next_page_link, custom_headers = nil)
|
620
687
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
688
|
+
|
689
|
+
|
621
690
|
request_headers = {}
|
622
691
|
|
623
692
|
# Set Headers
|
@@ -652,10 +721,8 @@ module Azure::ARM::Network
|
|
652
721
|
if status_code == 200
|
653
722
|
begin
|
654
723
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
655
|
-
|
656
|
-
|
657
|
-
end
|
658
|
-
result.body = parsed_response
|
724
|
+
result_mapper = PublicIPAddressListResult.mapper()
|
725
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
659
726
|
rescue Exception => e
|
660
727
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
661
728
|
end
|
@@ -711,6 +778,8 @@ module Azure::ARM::Network
|
|
711
778
|
#
|
712
779
|
def list_next_async(next_page_link, custom_headers = nil)
|
713
780
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
781
|
+
|
782
|
+
|
714
783
|
request_headers = {}
|
715
784
|
|
716
785
|
# Set Headers
|
@@ -745,10 +814,8 @@ module Azure::ARM::Network
|
|
745
814
|
if status_code == 200
|
746
815
|
begin
|
747
816
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
748
|
-
|
749
|
-
|
750
|
-
end
|
751
|
-
result.body = parsed_response
|
817
|
+
result_mapper = PublicIPAddressListResult.mapper()
|
818
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
752
819
|
rescue Exception => e
|
753
820
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
754
821
|
end
|
@@ -30,10 +30,24 @@ module Azure::ARM::Network
|
|
30
30
|
#
|
31
31
|
# @param resource_group_name [String] The name of the resource group.
|
32
32
|
# @param route_table_name [String] The name of the route table.
|
33
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
34
|
+
# will be added to the HTTP request.
|
35
|
+
#
|
36
|
+
def delete(resource_group_name, route_table_name, custom_headers = nil)
|
37
|
+
response = delete_async(resource_group_name, route_table_name, custom_headers).value!
|
38
|
+
nil
|
39
|
+
end
|
40
|
+
|
41
|
+
#
|
42
|
+
# @param resource_group_name [String] The name of the resource group.
|
43
|
+
# @param route_table_name [String] The name of the route table.
|
44
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
45
|
+
# will be added to the HTTP request.
|
46
|
+
#
|
33
47
|
# @return [Concurrent::Promise] promise which provides async access to http
|
34
48
|
# response.
|
35
49
|
#
|
36
|
-
def
|
50
|
+
def delete_async(resource_group_name, route_table_name, custom_headers = nil)
|
37
51
|
# Send request
|
38
52
|
promise = begin_delete_async(resource_group_name, route_table_name, custom_headers)
|
39
53
|
|
@@ -42,8 +56,8 @@ module Azure::ARM::Network
|
|
42
56
|
deserialize_method = lambda do |parsed_response|
|
43
57
|
end
|
44
58
|
|
45
|
-
|
46
|
-
|
59
|
+
# Waiting for response.
|
60
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
47
61
|
end
|
48
62
|
|
49
63
|
promise
|
@@ -92,6 +106,8 @@ module Azure::ARM::Network
|
|
92
106
|
fail ArgumentError, 'route_table_name is nil' if route_table_name.nil?
|
93
107
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
94
108
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
109
|
+
|
110
|
+
|
95
111
|
request_headers = {}
|
96
112
|
|
97
113
|
# Set Headers
|
@@ -180,6 +196,8 @@ module Azure::ARM::Network
|
|
180
196
|
fail ArgumentError, 'route_table_name is nil' if route_table_name.nil?
|
181
197
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
182
198
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
199
|
+
|
200
|
+
|
183
201
|
request_headers = {}
|
184
202
|
|
185
203
|
# Set Headers
|
@@ -215,10 +233,8 @@ module Azure::ARM::Network
|
|
215
233
|
if status_code == 200
|
216
234
|
begin
|
217
235
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
218
|
-
|
219
|
-
|
220
|
-
end
|
221
|
-
result.body = parsed_response
|
236
|
+
result_mapper = RouteTable.mapper()
|
237
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
222
238
|
rescue Exception => e
|
223
239
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
224
240
|
end
|
@@ -238,26 +254,36 @@ module Azure::ARM::Network
|
|
238
254
|
# @param route_table_name [String] The name of the route table.
|
239
255
|
# @param parameters [RouteTable] Parameters supplied to the create/update
|
240
256
|
# Route Table 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 [RouteTable] operation results.
|
261
|
+
#
|
262
|
+
def create_or_update(resource_group_name, route_table_name, parameters, custom_headers = nil)
|
263
|
+
response = create_or_update_async(resource_group_name, route_table_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 route_table_name [String] The name of the route table.
|
270
|
+
# @param parameters [RouteTable] Parameters supplied to the create/update
|
271
|
+
# Route Table 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, route_table_name, parameters, custom_headers = nil)
|
252
279
|
# Send request
|
253
280
|
promise = begin_create_or_update_async(resource_group_name, route_table_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 = RouteTable.mapper()
|
286
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response')
|
261
287
|
end
|
262
288
|
|
263
289
|
# Waiting for response.
|
@@ -319,21 +345,23 @@ module Azure::ARM::Network
|
|
319
345
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
320
346
|
fail ArgumentError, 'route_table_name is nil' if route_table_name.nil?
|
321
347
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
322
|
-
parameters.validate unless parameters.nil?
|
323
348
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
324
349
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
350
|
+
|
351
|
+
|
325
352
|
request_headers = {}
|
326
353
|
|
327
354
|
# Set Headers
|
328
355
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
329
356
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
330
357
|
|
331
|
-
# Serialize Request
|
332
358
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
request_content =
|
359
|
+
|
360
|
+
# Serialize Request
|
361
|
+
request_mapper = RouteTable.mapper()
|
362
|
+
request_content = @client.serialize(request_mapper, parameters, 'parameters')
|
363
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
364
|
+
|
337
365
|
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables/{routeTableName}'
|
338
366
|
options = {
|
339
367
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
@@ -365,10 +393,8 @@ module Azure::ARM::Network
|
|
365
393
|
if status_code == 200
|
366
394
|
begin
|
367
395
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
368
|
-
|
369
|
-
|
370
|
-
end
|
371
|
-
result.body = parsed_response
|
396
|
+
result_mapper = RouteTable.mapper()
|
397
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
372
398
|
rescue Exception => e
|
373
399
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
374
400
|
end
|
@@ -377,10 +403,8 @@ module Azure::ARM::Network
|
|
377
403
|
if status_code == 201
|
378
404
|
begin
|
379
405
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
380
|
-
|
381
|
-
|
382
|
-
end
|
383
|
-
result.body = parsed_response
|
406
|
+
result_mapper = RouteTable.mapper()
|
407
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
384
408
|
rescue Exception => e
|
385
409
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
386
410
|
end
|
@@ -399,11 +423,32 @@ module Azure::ARM::Network
|
|
399
423
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
400
424
|
# will be added to the HTTP request.
|
401
425
|
#
|
402
|
-
# @return [RouteTableListResult]
|
426
|
+
# @return [RouteTableListResult] which provide lazy access to pages of the
|
427
|
+
# response.
|
403
428
|
#
|
404
|
-
def
|
429
|
+
def list_as_lazy(resource_group_name, custom_headers = nil)
|
405
430
|
response = list_async(resource_group_name, custom_headers).value!
|
406
|
-
|
431
|
+
unless response.nil?
|
432
|
+
page = response.body
|
433
|
+
page.next_method = Proc.new do |next_link|
|
434
|
+
list_next_async(next_link, custom_headers)
|
435
|
+
end
|
436
|
+
page
|
437
|
+
end
|
438
|
+
end
|
439
|
+
|
440
|
+
#
|
441
|
+
# The list RouteTables returns all route tables in a resource group
|
442
|
+
#
|
443
|
+
# @param resource_group_name [String] The name of the resource group.
|
444
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
445
|
+
# will be added to the HTTP request.
|
446
|
+
#
|
447
|
+
# @return [Array<RouteTable>] operation results.
|
448
|
+
#
|
449
|
+
def list(resource_group_name, custom_headers = nil)
|
450
|
+
first_page = list_as_lazy(resource_group_name, custom_headers)
|
451
|
+
first_page.get_all_items
|
407
452
|
end
|
408
453
|
|
409
454
|
#
|
@@ -432,6 +477,8 @@ module Azure::ARM::Network
|
|
432
477
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
433
478
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
434
479
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
480
|
+
|
481
|
+
|
435
482
|
request_headers = {}
|
436
483
|
|
437
484
|
# Set Headers
|
@@ -467,10 +514,8 @@ module Azure::ARM::Network
|
|
467
514
|
if status_code == 200
|
468
515
|
begin
|
469
516
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
470
|
-
|
471
|
-
|
472
|
-
end
|
473
|
-
result.body = parsed_response
|
517
|
+
result_mapper = RouteTableListResult.mapper()
|
518
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
474
519
|
rescue Exception => e
|
475
520
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
476
521
|
end
|
@@ -488,11 +533,31 @@ module Azure::ARM::Network
|
|
488
533
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
489
534
|
# will be added to the HTTP request.
|
490
535
|
#
|
491
|
-
# @return [RouteTableListResult]
|
536
|
+
# @return [RouteTableListResult] which provide lazy access to pages of the
|
537
|
+
# response.
|
492
538
|
#
|
493
|
-
def
|
539
|
+
def list_all_as_lazy(custom_headers = nil)
|
494
540
|
response = list_all_async(custom_headers).value!
|
495
|
-
|
541
|
+
unless response.nil?
|
542
|
+
page = response.body
|
543
|
+
page.next_method = Proc.new do |next_link|
|
544
|
+
list_all_next_async(next_link, custom_headers)
|
545
|
+
end
|
546
|
+
page
|
547
|
+
end
|
548
|
+
end
|
549
|
+
|
550
|
+
#
|
551
|
+
# The list RouteTables returns all route tables in a subscription
|
552
|
+
#
|
553
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
554
|
+
# will be added to the HTTP request.
|
555
|
+
#
|
556
|
+
# @return [Array<RouteTable>] operation results.
|
557
|
+
#
|
558
|
+
def list_all(custom_headers = nil)
|
559
|
+
first_page = list_all_as_lazy(custom_headers)
|
560
|
+
first_page.get_all_items
|
496
561
|
end
|
497
562
|
|
498
563
|
#
|
@@ -518,6 +583,8 @@ module Azure::ARM::Network
|
|
518
583
|
def list_all_async(custom_headers = nil)
|
519
584
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
520
585
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
586
|
+
|
587
|
+
|
521
588
|
request_headers = {}
|
522
589
|
|
523
590
|
# Set Headers
|
@@ -553,10 +620,8 @@ module Azure::ARM::Network
|
|
553
620
|
if status_code == 200
|
554
621
|
begin
|
555
622
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
556
|
-
|
557
|
-
|
558
|
-
end
|
559
|
-
result.body = parsed_response
|
623
|
+
result_mapper = RouteTableListResult.mapper()
|
624
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
560
625
|
rescue Exception => e
|
561
626
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
562
627
|
end
|
@@ -609,6 +674,8 @@ module Azure::ARM::Network
|
|
609
674
|
#
|
610
675
|
def list_next_async(next_page_link, custom_headers = nil)
|
611
676
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
677
|
+
|
678
|
+
|
612
679
|
request_headers = {}
|
613
680
|
|
614
681
|
# Set Headers
|
@@ -643,10 +710,8 @@ module Azure::ARM::Network
|
|
643
710
|
if status_code == 200
|
644
711
|
begin
|
645
712
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
646
|
-
|
647
|
-
|
648
|
-
end
|
649
|
-
result.body = parsed_response
|
713
|
+
result_mapper = RouteTableListResult.mapper()
|
714
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
650
715
|
rescue Exception => e
|
651
716
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
652
717
|
end
|
@@ -699,6 +764,8 @@ module Azure::ARM::Network
|
|
699
764
|
#
|
700
765
|
def list_all_next_async(next_page_link, custom_headers = nil)
|
701
766
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
767
|
+
|
768
|
+
|
702
769
|
request_headers = {}
|
703
770
|
|
704
771
|
# Set Headers
|
@@ -733,10 +800,8 @@ module Azure::ARM::Network
|
|
733
800
|
if status_code == 200
|
734
801
|
begin
|
735
802
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
736
|
-
|
737
|
-
|
738
|
-
end
|
739
|
-
result.body = parsed_response
|
803
|
+
result_mapper = RouteTableListResult.mapper()
|
804
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
740
805
|
rescue Exception => e
|
741
806
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
742
807
|
end
|