azure_mgmt_network 0.3.1 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/azure_mgmt_network.gemspec +4 -5
- data/lib/azure_mgmt_network.rb +3 -201
- data/lib/generated/azure_mgmt_network.rb +175 -0
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/application_gateways.rb +158 -59
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/express_route_circuit_authorizations.rb +92 -42
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/express_route_circuit_peerings.rb +91 -42
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/express_route_circuits.rb +210 -92
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/express_route_service_providers.rb +32 -11
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/load_balancers.rb +120 -53
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/local_network_gateways.rb +91 -42
- data/lib/generated/azure_mgmt_network/models/address_space.rb +53 -0
- data/lib/generated/azure_mgmt_network/models/application_gateway.rb +326 -0
- data/lib/generated/azure_mgmt_network/models/application_gateway_backend_address.rb +54 -0
- data/lib/generated/azure_mgmt_network/models/application_gateway_backend_address_pool.rb +112 -0
- data/lib/generated/azure_mgmt_network/models/application_gateway_backend_http_settings.rb +128 -0
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/application_gateway_cookie_based_affinity.rb +0 -0
- data/lib/generated/azure_mgmt_network/models/application_gateway_frontend_ipconfiguration.rb +120 -0
- data/lib/generated/azure_mgmt_network/models/application_gateway_frontend_port.rb +84 -0
- data/lib/generated/azure_mgmt_network/models/application_gateway_http_listener.rb +142 -0
- data/lib/generated/azure_mgmt_network/models/application_gateway_ipconfiguration.rb +87 -0
- data/lib/generated/azure_mgmt_network/models/application_gateway_list_result.rb +94 -0
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/application_gateway_operational_state.rb +0 -0
- data/lib/generated/azure_mgmt_network/models/application_gateway_path_rule.rb +115 -0
- data/lib/generated/azure_mgmt_network/models/application_gateway_probe.rb +135 -0
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/application_gateway_protocol.rb +0 -0
- data/lib/generated/azure_mgmt_network/models/application_gateway_request_routing_rule.rb +133 -0
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/application_gateway_request_routing_rule_type.rb +0 -0
- data/lib/generated/azure_mgmt_network/models/application_gateway_sku.rb +68 -0
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/application_gateway_sku_name.rb +0 -0
- data/lib/generated/azure_mgmt_network/models/application_gateway_ssl_certificate.rb +104 -0
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/application_gateway_tier.rb +0 -0
- data/lib/generated/azure_mgmt_network/models/application_gateway_url_path_map.rb +117 -0
- data/lib/generated/azure_mgmt_network/models/authorization_list_result.rb +95 -0
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/authorization_use_status.rb +0 -0
- data/lib/generated/azure_mgmt_network/models/azure_async_operation_result.rb +63 -0
- data/lib/generated/azure_mgmt_network/models/backend_address_pool.rb +127 -0
- data/lib/generated/azure_mgmt_network/models/bgp_settings.rb +66 -0
- data/lib/generated/azure_mgmt_network/models/connection_reset_shared_key.rb +45 -0
- data/lib/generated/azure_mgmt_network/models/connection_shared_key.rb +44 -0
- data/lib/generated/azure_mgmt_network/models/connection_shared_key_result.rb +44 -0
- data/lib/generated/azure_mgmt_network/models/dhcp_options.rb +53 -0
- data/lib/generated/azure_mgmt_network/models/dns_name_availability_result.rb +44 -0
- data/lib/generated/azure_mgmt_network/models/effective_network_security_group.rb +76 -0
- data/lib/generated/azure_mgmt_network/models/effective_network_security_group_association.rb +56 -0
- data/lib/generated/azure_mgmt_network/models/effective_network_security_group_list_result.rb +95 -0
- data/lib/generated/azure_mgmt_network/models/effective_network_security_rules.rb +162 -0
- data/lib/generated/azure_mgmt_network/models/effective_route.rb +124 -0
- data/lib/generated/azure_mgmt_network/models/effective_route_list_result.rb +93 -0
- data/lib/generated/azure_mgmt_network/models/effective_route_source.rb +18 -0
- data/lib/generated/azure_mgmt_network/models/effective_route_state.rb +16 -0
- data/lib/generated/azure_mgmt_network/models/error.rb +92 -0
- data/lib/generated/azure_mgmt_network/models/error_details.rb +64 -0
- data/lib/generated/azure_mgmt_network/models/express_route_circuit.rb +215 -0
- data/lib/generated/azure_mgmt_network/models/express_route_circuit_arp_table.rb +74 -0
- data/lib/generated/azure_mgmt_network/models/express_route_circuit_authorization.rb +95 -0
- data/lib/generated/azure_mgmt_network/models/express_route_circuit_list_result.rb +94 -0
- data/lib/generated/azure_mgmt_network/models/express_route_circuit_peering.rb +200 -0
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/express_route_circuit_peering_advertised_public_prefix_state.rb +0 -0
- data/lib/generated/azure_mgmt_network/models/express_route_circuit_peering_config.rb +85 -0
- data/lib/generated/azure_mgmt_network/models/express_route_circuit_peering_list_result.rb +95 -0
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/express_route_circuit_peering_state.rb +0 -0
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/express_route_circuit_peering_type.rb +0 -0
- data/lib/generated/azure_mgmt_network/models/express_route_circuit_routes_table.rb +84 -0
- data/lib/generated/azure_mgmt_network/models/express_route_circuit_routes_table_summary.rb +87 -0
- data/lib/generated/azure_mgmt_network/models/express_route_circuit_service_provider_properties.rb +65 -0
- data/lib/generated/azure_mgmt_network/models/express_route_circuit_sku.rb +66 -0
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/express_route_circuit_sku_family.rb +0 -0
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/express_route_circuit_sku_tier.rb +0 -0
- data/lib/generated/azure_mgmt_network/models/express_route_circuit_stats.rb +74 -0
- data/lib/generated/azure_mgmt_network/models/express_route_circuits_arp_table_list_result.rb +62 -0
- data/lib/generated/azure_mgmt_network/models/express_route_circuits_routes_table_list_result.rb +65 -0
- data/lib/generated/azure_mgmt_network/models/express_route_circuits_routes_table_summary_list_result.rb +65 -0
- data/lib/generated/azure_mgmt_network/models/express_route_service_provider.rb +124 -0
- data/lib/generated/azure_mgmt_network/models/express_route_service_provider_bandwidths_offered.rb +55 -0
- data/lib/generated/azure_mgmt_network/models/express_route_service_provider_list_result.rb +94 -0
- data/lib/generated/azure_mgmt_network/models/frontend_ipconfiguration.rb +199 -0
- data/lib/generated/azure_mgmt_network/models/inbound_nat_pool.rb +140 -0
- data/lib/generated/azure_mgmt_network/models/inbound_nat_rule.rb +169 -0
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/ipallocation_method.rb +0 -0
- data/lib/generated/azure_mgmt_network/models/ipconfiguration.rb +119 -0
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/ipversion.rb +0 -0
- data/lib/generated/azure_mgmt_network/models/load_balancer.rb +239 -0
- data/lib/generated/azure_mgmt_network/models/load_balancer_list_result.rb +94 -0
- data/lib/generated/azure_mgmt_network/models/load_balancing_rule.rb +191 -0
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/load_distribution.rb +0 -0
- data/lib/generated/azure_mgmt_network/models/local_network_gateway.rb +143 -0
- data/lib/generated/azure_mgmt_network/models/local_network_gateway_list_result.rb +94 -0
- data/lib/generated/azure_mgmt_network/models/network_interface.rb +197 -0
- data/lib/generated/azure_mgmt_network/models/network_interface_dns_settings.rb +99 -0
- data/lib/generated/azure_mgmt_network/models/network_interface_ipconfiguration.rb +195 -0
- data/lib/generated/azure_mgmt_network/models/network_interface_list_result.rb +94 -0
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/network_operation_status.rb +0 -0
- data/lib/generated/azure_mgmt_network/models/network_security_group.rb +188 -0
- data/lib/generated/azure_mgmt_network/models/network_security_group_list_result.rb +94 -0
- data/lib/generated/azure_mgmt_network/models/outbound_nat_rule.rb +117 -0
- data/lib/generated/azure_mgmt_network/models/probe.rb +159 -0
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/probe_protocol.rb +0 -0
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/processor_architecture.rb +0 -0
- data/lib/generated/azure_mgmt_network/models/public_ipaddress.rb +177 -0
- data/lib/generated/azure_mgmt_network/models/public_ipaddress_dns_settings.rb +73 -0
- data/lib/generated/azure_mgmt_network/models/public_ipaddress_list_result.rb +94 -0
- data/lib/generated/azure_mgmt_network/models/route.rb +110 -0
- data/lib/generated/azure_mgmt_network/models/route_list_result.rb +93 -0
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/route_next_hop_type.rb +0 -0
- data/lib/generated/azure_mgmt_network/models/route_table.rb +137 -0
- data/lib/generated/azure_mgmt_network/models/route_table_list_result.rb +94 -0
- data/lib/generated/azure_mgmt_network/models/security_rule.rb +185 -0
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/security_rule_access.rb +0 -0
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/security_rule_direction.rb +0 -0
- data/lib/generated/azure_mgmt_network/models/security_rule_list_result.rb +95 -0
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/security_rule_protocol.rb +0 -0
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/service_provider_provisioning_state.rb +0 -0
- data/lib/generated/azure_mgmt_network/models/subnet.rb +127 -0
- data/lib/generated/azure_mgmt_network/models/subnet_list_result.rb +94 -0
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/transport_protocol.rb +0 -0
- data/lib/generated/azure_mgmt_network/models/usage.rb +78 -0
- data/lib/generated/azure_mgmt_network/models/usage_name.rb +55 -0
- data/lib/generated/azure_mgmt_network/models/usages_list_result.rb +52 -0
- data/lib/generated/azure_mgmt_network/models/virtual_network.rb +173 -0
- data/lib/generated/azure_mgmt_network/models/virtual_network_gateway.rb +213 -0
- data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_connection.rb +239 -0
- data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_connection_list_result.rb +96 -0
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/virtual_network_gateway_connection_status.rb +0 -0
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/virtual_network_gateway_connection_type.rb +0 -0
- data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_ipconfiguration.rb +108 -0
- data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_list_result.rb +94 -0
- data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_sku.rb +68 -0
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/virtual_network_gateway_sku_name.rb +0 -0
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/virtual_network_gateway_sku_tier.rb +0 -0
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/virtual_network_gateway_type.rb +0 -0
- data/lib/generated/azure_mgmt_network/models/virtual_network_list_result.rb +94 -0
- data/lib/generated/azure_mgmt_network/models/virtual_network_peering.rb +146 -0
- data/lib/generated/azure_mgmt_network/models/virtual_network_peering_list_result.rb +95 -0
- data/lib/generated/azure_mgmt_network/models/virtual_network_peering_state.rb +17 -0
- data/lib/generated/azure_mgmt_network/models/vpn_client_configuration.rb +84 -0
- data/lib/generated/azure_mgmt_network/models/vpn_client_parameters.rb +45 -0
- data/lib/generated/azure_mgmt_network/models/vpn_client_revoked_certificate.rb +85 -0
- data/lib/generated/azure_mgmt_network/models/vpn_client_root_certificate.rb +84 -0
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/models/vpn_type.rb +0 -0
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/module_definition.rb +0 -0
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/network_interfaces.rb +913 -113
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/network_management_client.rb +31 -25
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/network_security_groups.rb +122 -53
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/public_ipaddresses.rb +120 -53
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/route_tables.rb +118 -53
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/routes.rb +90 -42
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/security_rules.rb +94 -42
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/subnets.rb +94 -46
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/usages.rb +4 -94
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/version.rb +1 -1
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/virtual_network_gateway_connections.rb +164 -86
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/virtual_network_gateways.rb +146 -70
- data/lib/generated/azure_mgmt_network/virtual_network_peerings.rb +654 -0
- data/lib/{azure_mgmt_network → generated/azure_mgmt_network}/virtual_networks.rb +123 -58
- metadata +173 -221
- data/lib/azure_mgmt_network/models/address_space.rb +0 -58
- data/lib/azure_mgmt_network/models/application_gateway.rb +0 -102
- data/lib/azure_mgmt_network/models/application_gateway_backend_address.rb +0 -65
- data/lib/azure_mgmt_network/models/application_gateway_backend_address_pool.rb +0 -88
- data/lib/azure_mgmt_network/models/application_gateway_backend_address_pool_properties_format.rb +0 -119
- data/lib/azure_mgmt_network/models/application_gateway_backend_http_settings.rb +0 -88
- data/lib/azure_mgmt_network/models/application_gateway_backend_http_settings_properties_format.rb +0 -122
- data/lib/azure_mgmt_network/models/application_gateway_frontend_ipconfiguration.rb +0 -89
- data/lib/azure_mgmt_network/models/application_gateway_frontend_ipconfiguration_properties_format.rb +0 -114
- data/lib/azure_mgmt_network/models/application_gateway_frontend_port.rb +0 -88
- data/lib/azure_mgmt_network/models/application_gateway_frontend_port_properties_format.rb +0 -68
- data/lib/azure_mgmt_network/models/application_gateway_http_listener.rb +0 -88
- data/lib/azure_mgmt_network/models/application_gateway_http_listener_properties_format.rb +0 -141
- data/lib/azure_mgmt_network/models/application_gateway_ipconfiguration.rb +0 -88
- data/lib/azure_mgmt_network/models/application_gateway_ipconfiguration_properties_format.rb +0 -75
- data/lib/azure_mgmt_network/models/application_gateway_list_result.rb +0 -86
- data/lib/azure_mgmt_network/models/application_gateway_path_rule.rb +0 -88
- data/lib/azure_mgmt_network/models/application_gateway_path_rule_properties_format.rb +0 -101
- data/lib/azure_mgmt_network/models/application_gateway_probe.rb +0 -88
- data/lib/azure_mgmt_network/models/application_gateway_probe_properties_format.rb +0 -118
- data/lib/azure_mgmt_network/models/application_gateway_properties_format.rb +0 -408
- data/lib/azure_mgmt_network/models/application_gateway_request_routing_rule.rb +0 -88
- data/lib/azure_mgmt_network/models/application_gateway_request_routing_rule_properties_format.rb +0 -139
- data/lib/azure_mgmt_network/models/application_gateway_sku.rb +0 -86
- data/lib/azure_mgmt_network/models/application_gateway_ssl_certificate.rb +0 -88
- data/lib/azure_mgmt_network/models/application_gateway_ssl_certificate_properties_format.rb +0 -85
- data/lib/azure_mgmt_network/models/application_gateway_url_path_map.rb +0 -88
- data/lib/azure_mgmt_network/models/application_gateway_url_path_map_properties_format.rb +0 -122
- data/lib/azure_mgmt_network/models/authorization_list_result.rb +0 -87
- data/lib/azure_mgmt_network/models/authorization_properties_format.rb +0 -79
- data/lib/azure_mgmt_network/models/azure_async_operation_result.rb +0 -83
- data/lib/azure_mgmt_network/models/backend_address_pool.rb +0 -88
- data/lib/azure_mgmt_network/models/backend_address_pool_properties_format.rb +0 -135
- data/lib/azure_mgmt_network/models/bgp_settings.rb +0 -78
- data/lib/azure_mgmt_network/models/connection_reset_shared_key.rb +0 -58
- data/lib/azure_mgmt_network/models/connection_shared_key.rb +0 -56
- data/lib/azure_mgmt_network/models/connection_shared_key_result.rb +0 -56
- data/lib/azure_mgmt_network/models/dhcp_options.rb +0 -58
- data/lib/azure_mgmt_network/models/dns_name_availability_result.rb +0 -56
- data/lib/azure_mgmt_network/models/error.rb +0 -112
- data/lib/azure_mgmt_network/models/error_details.rb +0 -74
- data/lib/azure_mgmt_network/models/express_route_circuit.rb +0 -118
- data/lib/azure_mgmt_network/models/express_route_circuit_arp_table.rb +0 -84
- data/lib/azure_mgmt_network/models/express_route_circuit_authorization.rb +0 -88
- data/lib/azure_mgmt_network/models/express_route_circuit_list_result.rb +0 -86
- data/lib/azure_mgmt_network/models/express_route_circuit_peering.rb +0 -88
- data/lib/azure_mgmt_network/models/express_route_circuit_peering_config.rb +0 -92
- data/lib/azure_mgmt_network/models/express_route_circuit_peering_list_result.rb +0 -87
- data/lib/azure_mgmt_network/models/express_route_circuit_peering_properties_format.rb +0 -194
- data/lib/azure_mgmt_network/models/express_route_circuit_properties_format.rb +0 -188
- data/lib/azure_mgmt_network/models/express_route_circuit_routes_table.rb +0 -93
- data/lib/azure_mgmt_network/models/express_route_circuit_routes_table_summary.rb +0 -97
- data/lib/azure_mgmt_network/models/express_route_circuit_service_provider_properties.rb +0 -76
- data/lib/azure_mgmt_network/models/express_route_circuit_sku.rb +0 -83
- data/lib/azure_mgmt_network/models/express_route_circuit_stats.rb +0 -87
- data/lib/azure_mgmt_network/models/express_route_circuits_arp_table_list_result.rb +0 -85
- data/lib/azure_mgmt_network/models/express_route_circuits_routes_table_list_result.rb +0 -88
- data/lib/azure_mgmt_network/models/express_route_circuits_routes_table_summary_list_result.rb +0 -88
- data/lib/azure_mgmt_network/models/express_route_service_provider.rb +0 -92
- data/lib/azure_mgmt_network/models/express_route_service_provider_bandwidths_offered.rb +0 -67
- data/lib/azure_mgmt_network/models/express_route_service_provider_list_result.rb +0 -86
- data/lib/azure_mgmt_network/models/express_route_service_provider_properties_format.rb +0 -97
- data/lib/azure_mgmt_network/models/frontend_ipconfiguration.rb +0 -88
- data/lib/azure_mgmt_network/models/frontend_ipconfiguration_properties_format.rb +0 -237
- data/lib/azure_mgmt_network/models/inbound_nat_pool.rb +0 -88
- data/lib/azure_mgmt_network/models/inbound_nat_pool_properties_format.rb +0 -134
- data/lib/azure_mgmt_network/models/inbound_nat_rule.rb +0 -88
- data/lib/azure_mgmt_network/models/inbound_nat_rule_properties_format.rb +0 -162
- data/lib/azure_mgmt_network/models/ipconfiguration.rb +0 -88
- data/lib/azure_mgmt_network/models/ipconfiguration_properties_format.rb +0 -113
- data/lib/azure_mgmt_network/models/load_balancer.rb +0 -102
- data/lib/azure_mgmt_network/models/load_balancer_list_result.rb +0 -86
- data/lib/azure_mgmt_network/models/load_balancer_properties_format.rb +0 -278
- data/lib/azure_mgmt_network/models/load_balancing_rule.rb +0 -88
- data/lib/azure_mgmt_network/models/load_balancing_rule_properties_format.rb +0 -195
- data/lib/azure_mgmt_network/models/local_network_gateway.rb +0 -102
- data/lib/azure_mgmt_network/models/local_network_gateway_list_result.rb +0 -86
- data/lib/azure_mgmt_network/models/local_network_gateway_properties_format.rb +0 -107
- data/lib/azure_mgmt_network/models/network_interface.rb +0 -102
- data/lib/azure_mgmt_network/models/network_interface_dns_settings.rb +0 -94
- data/lib/azure_mgmt_network/models/network_interface_ipconfiguration.rb +0 -88
- data/lib/azure_mgmt_network/models/network_interface_ipconfiguration_properties_format.rb +0 -218
- data/lib/azure_mgmt_network/models/network_interface_list_result.rb +0 -86
- data/lib/azure_mgmt_network/models/network_interface_properties_format.rb +0 -176
- data/lib/azure_mgmt_network/models/network_security_group.rb +0 -102
- data/lib/azure_mgmt_network/models/network_security_group_list_result.rb +0 -86
- data/lib/azure_mgmt_network/models/network_security_group_properties_format.rb +0 -189
- data/lib/azure_mgmt_network/models/outbound_nat_rule.rb +0 -88
- data/lib/azure_mgmt_network/models/outbound_nat_rule_properties_format.rb +0 -117
- data/lib/azure_mgmt_network/models/probe.rb +0 -88
- data/lib/azure_mgmt_network/models/probe_properties_format.rb +0 -156
- data/lib/azure_mgmt_network/models/public_ipaddress.rb +0 -102
- data/lib/azure_mgmt_network/models/public_ipaddress_dns_settings.rb +0 -83
- data/lib/azure_mgmt_network/models/public_ipaddress_list_result.rb +0 -86
- data/lib/azure_mgmt_network/models/public_ipaddress_properties_format.rb +0 -146
- data/lib/azure_mgmt_network/models/route.rb +0 -88
- data/lib/azure_mgmt_network/models/route_list_result.rb +0 -85
- data/lib/azure_mgmt_network/models/route_properties_format.rb +0 -94
- data/lib/azure_mgmt_network/models/route_table.rb +0 -102
- data/lib/azure_mgmt_network/models/route_table_list_result.rb +0 -86
- data/lib/azure_mgmt_network/models/route_table_properties_format.rb +0 -116
- data/lib/azure_mgmt_network/models/security_rule.rb +0 -88
- data/lib/azure_mgmt_network/models/security_rule_list_result.rb +0 -87
- data/lib/azure_mgmt_network/models/security_rule_properties_format.rb +0 -176
- data/lib/azure_mgmt_network/models/subnet.rb +0 -88
- data/lib/azure_mgmt_network/models/subnet_list_result.rb +0 -86
- data/lib/azure_mgmt_network/models/subnet_properties_format.rb +0 -130
- data/lib/azure_mgmt_network/models/usage.rb +0 -96
- data/lib/azure_mgmt_network/models/usage_name.rb +0 -66
- data/lib/azure_mgmt_network/models/usages_list_result.rb +0 -76
- data/lib/azure_mgmt_network/models/virtual_network.rb +0 -102
- data/lib/azure_mgmt_network/models/virtual_network_gateway.rb +0 -102
- data/lib/azure_mgmt_network/models/virtual_network_gateway_connection.rb +0 -102
- data/lib/azure_mgmt_network/models/virtual_network_gateway_connection_list_result.rb +0 -87
- data/lib/azure_mgmt_network/models/virtual_network_gateway_connection_properties_format.rb +0 -218
- data/lib/azure_mgmt_network/models/virtual_network_gateway_ipconfiguration.rb +0 -88
- data/lib/azure_mgmt_network/models/virtual_network_gateway_ipconfiguration_properties_format.rb +0 -114
- data/lib/azure_mgmt_network/models/virtual_network_gateway_list_result.rb +0 -86
- data/lib/azure_mgmt_network/models/virtual_network_gateway_properties_format.rb +0 -205
- data/lib/azure_mgmt_network/models/virtual_network_gateway_sku.rb +0 -86
- data/lib/azure_mgmt_network/models/virtual_network_list_result.rb +0 -86
- data/lib/azure_mgmt_network/models/virtual_network_properties_format.rb +0 -131
- data/lib/azure_mgmt_network/models/vpn_client_configuration.rb +0 -125
- data/lib/azure_mgmt_network/models/vpn_client_parameters.rb +0 -60
- data/lib/azure_mgmt_network/models/vpn_client_revoked_certificate.rb +0 -88
- data/lib/azure_mgmt_network/models/vpn_client_revoked_certificate_properties_format.rb +0 -69
- data/lib/azure_mgmt_network/models/vpn_client_root_certificate.rb +0 -88
- data/lib/azure_mgmt_network/models/vpn_client_root_certificate_properties_format.rb +0 -66
@@ -31,10 +31,25 @@ module Azure::ARM::Network
|
|
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
33
|
# @param route_name [String] The name of the route.
|
34
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
35
|
+
# will be added to the HTTP request.
|
36
|
+
#
|
37
|
+
def delete(resource_group_name, route_table_name, route_name, custom_headers = nil)
|
38
|
+
response = delete_async(resource_group_name, route_table_name, route_name, custom_headers).value!
|
39
|
+
nil
|
40
|
+
end
|
41
|
+
|
42
|
+
#
|
43
|
+
# @param resource_group_name [String] The name of the resource group.
|
44
|
+
# @param route_table_name [String] The name of the route table.
|
45
|
+
# @param route_name [String] The name of the route.
|
46
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
47
|
+
# will be added to the HTTP request.
|
48
|
+
#
|
34
49
|
# @return [Concurrent::Promise] promise which provides async access to http
|
35
50
|
# response.
|
36
51
|
#
|
37
|
-
def
|
52
|
+
def delete_async(resource_group_name, route_table_name, route_name, custom_headers = nil)
|
38
53
|
# Send request
|
39
54
|
promise = begin_delete_async(resource_group_name, route_table_name, route_name, custom_headers)
|
40
55
|
|
@@ -43,8 +58,8 @@ module Azure::ARM::Network
|
|
43
58
|
deserialize_method = lambda do |parsed_response|
|
44
59
|
end
|
45
60
|
|
46
|
-
|
47
|
-
|
61
|
+
# Waiting for response.
|
62
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
48
63
|
end
|
49
64
|
|
50
65
|
promise
|
@@ -97,6 +112,8 @@ module Azure::ARM::Network
|
|
97
112
|
fail ArgumentError, 'route_name is nil' if route_name.nil?
|
98
113
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
99
114
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
115
|
+
|
116
|
+
|
100
117
|
request_headers = {}
|
101
118
|
|
102
119
|
# Set Headers
|
@@ -186,6 +203,8 @@ module Azure::ARM::Network
|
|
186
203
|
fail ArgumentError, 'route_name is nil' if route_name.nil?
|
187
204
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
188
205
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
206
|
+
|
207
|
+
|
189
208
|
request_headers = {}
|
190
209
|
|
191
210
|
# Set Headers
|
@@ -221,10 +240,8 @@ module Azure::ARM::Network
|
|
221
240
|
if status_code == 200
|
222
241
|
begin
|
223
242
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
224
|
-
|
225
|
-
|
226
|
-
end
|
227
|
-
result.body = parsed_response
|
243
|
+
result_mapper = Route.mapper()
|
244
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
228
245
|
rescue Exception => e
|
229
246
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
230
247
|
end
|
@@ -244,26 +261,37 @@ module Azure::ARM::Network
|
|
244
261
|
# @param route_name [String] The name of the route.
|
245
262
|
# @param route_parameters [Route] Parameters supplied to the create/update
|
246
263
|
# routeoperation
|
247
|
-
# @param
|
248
|
-
#
|
249
|
-
#
|
250
|
-
#
|
251
|
-
#
|
252
|
-
|
264
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
265
|
+
# will be added to the HTTP request.
|
266
|
+
#
|
267
|
+
# @return [Route] operation results.
|
268
|
+
#
|
269
|
+
def create_or_update(resource_group_name, route_table_name, route_name, route_parameters, custom_headers = nil)
|
270
|
+
response = create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers).value!
|
271
|
+
response.body unless response.nil?
|
272
|
+
end
|
273
|
+
|
274
|
+
#
|
275
|
+
# @param resource_group_name [String] The name of the resource group.
|
276
|
+
# @param route_table_name [String] The name of the route table.
|
277
|
+
# @param route_name [String] The name of the route.
|
278
|
+
# @param route_parameters [Route] Parameters supplied to the create/update
|
279
|
+
# routeoperation
|
280
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
281
|
+
# will be added to the HTTP request.
|
253
282
|
#
|
254
283
|
# @return [Concurrent::Promise] promise which provides async access to http
|
255
284
|
# response.
|
256
285
|
#
|
257
|
-
def
|
286
|
+
def create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers = nil)
|
258
287
|
# Send request
|
259
288
|
promise = begin_create_or_update_async(resource_group_name, route_table_name, route_name, route_parameters, custom_headers)
|
260
289
|
|
261
290
|
promise = promise.then do |response|
|
262
291
|
# Defining deserialization method.
|
263
292
|
deserialize_method = lambda do |parsed_response|
|
264
|
-
|
265
|
-
|
266
|
-
end
|
293
|
+
result_mapper = Route.mapper()
|
294
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response')
|
267
295
|
end
|
268
296
|
|
269
297
|
# Waiting for response.
|
@@ -326,21 +354,23 @@ module Azure::ARM::Network
|
|
326
354
|
fail ArgumentError, 'route_table_name is nil' if route_table_name.nil?
|
327
355
|
fail ArgumentError, 'route_name is nil' if route_name.nil?
|
328
356
|
fail ArgumentError, 'route_parameters is nil' if route_parameters.nil?
|
329
|
-
route_parameters.validate unless route_parameters.nil?
|
330
357
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
331
358
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
359
|
+
|
360
|
+
|
332
361
|
request_headers = {}
|
333
362
|
|
334
363
|
# Set Headers
|
335
364
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
336
365
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
337
366
|
|
338
|
-
# Serialize Request
|
339
367
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
request_content =
|
368
|
+
|
369
|
+
# Serialize Request
|
370
|
+
request_mapper = Route.mapper()
|
371
|
+
request_content = @client.serialize(request_mapper, route_parameters, 'route_parameters')
|
372
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
373
|
+
|
344
374
|
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables/{routeTableName}/routes/{routeName}'
|
345
375
|
options = {
|
346
376
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
@@ -372,10 +402,8 @@ module Azure::ARM::Network
|
|
372
402
|
if status_code == 200
|
373
403
|
begin
|
374
404
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
375
|
-
|
376
|
-
|
377
|
-
end
|
378
|
-
result.body = parsed_response
|
405
|
+
result_mapper = Route.mapper()
|
406
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
379
407
|
rescue Exception => e
|
380
408
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
381
409
|
end
|
@@ -384,10 +412,8 @@ module Azure::ARM::Network
|
|
384
412
|
if status_code == 201
|
385
413
|
begin
|
386
414
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
387
|
-
|
388
|
-
|
389
|
-
end
|
390
|
-
result.body = parsed_response
|
415
|
+
result_mapper = Route.mapper()
|
416
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
391
417
|
rescue Exception => e
|
392
418
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
393
419
|
end
|
@@ -408,11 +434,33 @@ module Azure::ARM::Network
|
|
408
434
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
409
435
|
# will be added to the HTTP request.
|
410
436
|
#
|
411
|
-
# @return [RouteListResult]
|
437
|
+
# @return [RouteListResult] which provide lazy access to pages of the response.
|
412
438
|
#
|
413
|
-
def
|
439
|
+
def list_as_lazy(resource_group_name, route_table_name, custom_headers = nil)
|
414
440
|
response = list_async(resource_group_name, route_table_name, custom_headers).value!
|
415
|
-
|
441
|
+
unless response.nil?
|
442
|
+
page = response.body
|
443
|
+
page.next_method = Proc.new do |next_link|
|
444
|
+
list_next_async(next_link, custom_headers)
|
445
|
+
end
|
446
|
+
page
|
447
|
+
end
|
448
|
+
end
|
449
|
+
|
450
|
+
#
|
451
|
+
# The List network security rule opertion retrieves all the routes in a route
|
452
|
+
# table.
|
453
|
+
#
|
454
|
+
# @param resource_group_name [String] The name of the resource group.
|
455
|
+
# @param route_table_name [String] The name of the route table.
|
456
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
457
|
+
# will be added to the HTTP request.
|
458
|
+
#
|
459
|
+
# @return [Array<Route>] operation results.
|
460
|
+
#
|
461
|
+
def list(resource_group_name, route_table_name, custom_headers = nil)
|
462
|
+
first_page = list_as_lazy(resource_group_name, route_table_name, custom_headers)
|
463
|
+
first_page.get_all_items
|
416
464
|
end
|
417
465
|
|
418
466
|
#
|
@@ -446,6 +494,8 @@ module Azure::ARM::Network
|
|
446
494
|
fail ArgumentError, 'route_table_name is nil' if route_table_name.nil?
|
447
495
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
448
496
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
497
|
+
|
498
|
+
|
449
499
|
request_headers = {}
|
450
500
|
|
451
501
|
# Set Headers
|
@@ -481,10 +531,8 @@ module Azure::ARM::Network
|
|
481
531
|
if status_code == 200
|
482
532
|
begin
|
483
533
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
484
|
-
|
485
|
-
|
486
|
-
end
|
487
|
-
result.body = parsed_response
|
534
|
+
result_mapper = RouteListResult.mapper()
|
535
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
488
536
|
rescue Exception => e
|
489
537
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
490
538
|
end
|
@@ -540,6 +588,8 @@ module Azure::ARM::Network
|
|
540
588
|
#
|
541
589
|
def list_next_async(next_page_link, custom_headers = nil)
|
542
590
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
591
|
+
|
592
|
+
|
543
593
|
request_headers = {}
|
544
594
|
|
545
595
|
# Set Headers
|
@@ -574,10 +624,8 @@ module Azure::ARM::Network
|
|
574
624
|
if status_code == 200
|
575
625
|
begin
|
576
626
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
577
|
-
|
578
|
-
|
579
|
-
end
|
580
|
-
result.body = parsed_response
|
627
|
+
result_mapper = RouteListResult.mapper()
|
628
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
581
629
|
rescue Exception => e
|
582
630
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
583
631
|
end
|
@@ -33,10 +33,26 @@ module Azure::ARM::Network
|
|
33
33
|
# @param network_security_group_name [String] The name of the network security
|
34
34
|
# group.
|
35
35
|
# @param security_rule_name [String] The name of the security rule.
|
36
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
37
|
+
# will be added to the HTTP request.
|
38
|
+
#
|
39
|
+
def delete(resource_group_name, network_security_group_name, security_rule_name, custom_headers = nil)
|
40
|
+
response = delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers).value!
|
41
|
+
nil
|
42
|
+
end
|
43
|
+
|
44
|
+
#
|
45
|
+
# @param resource_group_name [String] The name of the resource group.
|
46
|
+
# @param network_security_group_name [String] The name of the network security
|
47
|
+
# group.
|
48
|
+
# @param security_rule_name [String] The name of the security rule.
|
49
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
50
|
+
# will be added to the HTTP request.
|
51
|
+
#
|
36
52
|
# @return [Concurrent::Promise] promise which provides async access to http
|
37
53
|
# response.
|
38
54
|
#
|
39
|
-
def
|
55
|
+
def delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers = nil)
|
40
56
|
# Send request
|
41
57
|
promise = begin_delete_async(resource_group_name, network_security_group_name, security_rule_name, custom_headers)
|
42
58
|
|
@@ -45,8 +61,8 @@ module Azure::ARM::Network
|
|
45
61
|
deserialize_method = lambda do |parsed_response|
|
46
62
|
end
|
47
63
|
|
48
|
-
|
49
|
-
|
64
|
+
# Waiting for response.
|
65
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
50
66
|
end
|
51
67
|
|
52
68
|
promise
|
@@ -105,6 +121,8 @@ module Azure::ARM::Network
|
|
105
121
|
fail ArgumentError, 'security_rule_name is nil' if security_rule_name.nil?
|
106
122
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
107
123
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
124
|
+
|
125
|
+
|
108
126
|
request_headers = {}
|
109
127
|
|
110
128
|
# Set Headers
|
@@ -197,6 +215,8 @@ module Azure::ARM::Network
|
|
197
215
|
fail ArgumentError, 'security_rule_name is nil' if security_rule_name.nil?
|
198
216
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
199
217
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
218
|
+
|
219
|
+
|
200
220
|
request_headers = {}
|
201
221
|
|
202
222
|
# Set Headers
|
@@ -232,10 +252,8 @@ module Azure::ARM::Network
|
|
232
252
|
if status_code == 200
|
233
253
|
begin
|
234
254
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
235
|
-
|
236
|
-
|
237
|
-
end
|
238
|
-
result.body = parsed_response
|
255
|
+
result_mapper = SecurityRule.mapper()
|
256
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
239
257
|
rescue Exception => e
|
240
258
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
241
259
|
end
|
@@ -257,26 +275,38 @@ module Azure::ARM::Network
|
|
257
275
|
# @param security_rule_name [String] The name of the security rule.
|
258
276
|
# @param security_rule_parameters [SecurityRule] Parameters supplied to the
|
259
277
|
# create/update network security rule operation
|
260
|
-
# @param
|
261
|
-
#
|
262
|
-
#
|
263
|
-
#
|
264
|
-
#
|
265
|
-
|
278
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
279
|
+
# will be added to the HTTP request.
|
280
|
+
#
|
281
|
+
# @return [SecurityRule] operation results.
|
282
|
+
#
|
283
|
+
def create_or_update(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers = nil)
|
284
|
+
response = create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers).value!
|
285
|
+
response.body unless response.nil?
|
286
|
+
end
|
287
|
+
|
288
|
+
#
|
289
|
+
# @param resource_group_name [String] The name of the resource group.
|
290
|
+
# @param network_security_group_name [String] The name of the network security
|
291
|
+
# group.
|
292
|
+
# @param security_rule_name [String] The name of the security rule.
|
293
|
+
# @param security_rule_parameters [SecurityRule] Parameters supplied to the
|
294
|
+
# create/update network security rule operation
|
295
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
296
|
+
# will be added to the HTTP request.
|
266
297
|
#
|
267
298
|
# @return [Concurrent::Promise] promise which provides async access to http
|
268
299
|
# response.
|
269
300
|
#
|
270
|
-
def
|
301
|
+
def create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers = nil)
|
271
302
|
# Send request
|
272
303
|
promise = begin_create_or_update_async(resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers)
|
273
304
|
|
274
305
|
promise = promise.then do |response|
|
275
306
|
# Defining deserialization method.
|
276
307
|
deserialize_method = lambda do |parsed_response|
|
277
|
-
|
278
|
-
|
279
|
-
end
|
308
|
+
result_mapper = SecurityRule.mapper()
|
309
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response')
|
280
310
|
end
|
281
311
|
|
282
312
|
# Waiting for response.
|
@@ -345,21 +375,23 @@ module Azure::ARM::Network
|
|
345
375
|
fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil?
|
346
376
|
fail ArgumentError, 'security_rule_name is nil' if security_rule_name.nil?
|
347
377
|
fail ArgumentError, 'security_rule_parameters is nil' if security_rule_parameters.nil?
|
348
|
-
security_rule_parameters.validate unless security_rule_parameters.nil?
|
349
378
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
350
379
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
380
|
+
|
381
|
+
|
351
382
|
request_headers = {}
|
352
383
|
|
353
384
|
# Set Headers
|
354
385
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
355
386
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
356
387
|
|
357
|
-
# Serialize Request
|
358
388
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
request_content =
|
389
|
+
|
390
|
+
# Serialize Request
|
391
|
+
request_mapper = SecurityRule.mapper()
|
392
|
+
request_content = @client.serialize(request_mapper, security_rule_parameters, 'security_rule_parameters')
|
393
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
394
|
+
|
363
395
|
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}/securityRules/{securityRuleName}'
|
364
396
|
options = {
|
365
397
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
@@ -391,10 +423,8 @@ module Azure::ARM::Network
|
|
391
423
|
if status_code == 200
|
392
424
|
begin
|
393
425
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
394
|
-
|
395
|
-
|
396
|
-
end
|
397
|
-
result.body = parsed_response
|
426
|
+
result_mapper = SecurityRule.mapper()
|
427
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
398
428
|
rescue Exception => e
|
399
429
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
400
430
|
end
|
@@ -403,10 +433,8 @@ module Azure::ARM::Network
|
|
403
433
|
if status_code == 201
|
404
434
|
begin
|
405
435
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
406
|
-
|
407
|
-
|
408
|
-
end
|
409
|
-
result.body = parsed_response
|
436
|
+
result_mapper = SecurityRule.mapper()
|
437
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
410
438
|
rescue Exception => e
|
411
439
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
412
440
|
end
|
@@ -428,11 +456,35 @@ module Azure::ARM::Network
|
|
428
456
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
429
457
|
# will be added to the HTTP request.
|
430
458
|
#
|
431
|
-
# @return [SecurityRuleListResult]
|
459
|
+
# @return [SecurityRuleListResult] which provide lazy access to pages of the
|
460
|
+
# response.
|
432
461
|
#
|
433
|
-
def
|
462
|
+
def list_as_lazy(resource_group_name, network_security_group_name, custom_headers = nil)
|
434
463
|
response = list_async(resource_group_name, network_security_group_name, custom_headers).value!
|
435
|
-
|
464
|
+
unless response.nil?
|
465
|
+
page = response.body
|
466
|
+
page.next_method = Proc.new do |next_link|
|
467
|
+
list_next_async(next_link, custom_headers)
|
468
|
+
end
|
469
|
+
page
|
470
|
+
end
|
471
|
+
end
|
472
|
+
|
473
|
+
#
|
474
|
+
# The List network security rule opertion retrieves all the security rules in
|
475
|
+
# a network security group.
|
476
|
+
#
|
477
|
+
# @param resource_group_name [String] The name of the resource group.
|
478
|
+
# @param network_security_group_name [String] The name of the network security
|
479
|
+
# group.
|
480
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
481
|
+
# will be added to the HTTP request.
|
482
|
+
#
|
483
|
+
# @return [Array<SecurityRule>] operation results.
|
484
|
+
#
|
485
|
+
def list(resource_group_name, network_security_group_name, custom_headers = nil)
|
486
|
+
first_page = list_as_lazy(resource_group_name, network_security_group_name, custom_headers)
|
487
|
+
first_page.get_all_items
|
436
488
|
end
|
437
489
|
|
438
490
|
#
|
@@ -468,6 +520,8 @@ module Azure::ARM::Network
|
|
468
520
|
fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil?
|
469
521
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
470
522
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
523
|
+
|
524
|
+
|
471
525
|
request_headers = {}
|
472
526
|
|
473
527
|
# Set Headers
|
@@ -503,10 +557,8 @@ module Azure::ARM::Network
|
|
503
557
|
if status_code == 200
|
504
558
|
begin
|
505
559
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
506
|
-
|
507
|
-
|
508
|
-
end
|
509
|
-
result.body = parsed_response
|
560
|
+
result_mapper = SecurityRuleListResult.mapper()
|
561
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
510
562
|
rescue Exception => e
|
511
563
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
512
564
|
end
|
@@ -562,6 +614,8 @@ module Azure::ARM::Network
|
|
562
614
|
#
|
563
615
|
def list_next_async(next_page_link, custom_headers = nil)
|
564
616
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
617
|
+
|
618
|
+
|
565
619
|
request_headers = {}
|
566
620
|
|
567
621
|
# Set Headers
|
@@ -596,10 +650,8 @@ module Azure::ARM::Network
|
|
596
650
|
if status_code == 200
|
597
651
|
begin
|
598
652
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
599
|
-
|
600
|
-
|
601
|
-
end
|
602
|
-
result.body = parsed_response
|
653
|
+
result_mapper = SecurityRuleListResult.mapper()
|
654
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
603
655
|
rescue Exception => e
|
604
656
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
605
657
|
end
|