azure_mgmt_network 0.10.0 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/generated/azure_mgmt_network.rb +97 -56
- data/lib/generated/azure_mgmt_network/application_gateways.rb +483 -41
- data/lib/generated/azure_mgmt_network/available_private_access_services.rb +224 -0
- data/lib/generated/azure_mgmt_network/bgp_service_communities.rb +8 -9
- data/lib/generated/azure_mgmt_network/express_route_circuit_authorizations.rb +24 -25
- data/lib/generated/azure_mgmt_network/express_route_circuit_peerings.rb +24 -25
- data/lib/generated/azure_mgmt_network/express_route_circuits.rb +56 -57
- data/lib/generated/azure_mgmt_network/express_route_service_providers.rb +8 -9
- data/lib/generated/azure_mgmt_network/load_balancers.rb +30 -31
- data/lib/generated/azure_mgmt_network/local_network_gateways.rb +24 -25
- data/lib/generated/azure_mgmt_network/models/access.rb +1 -1
- data/lib/generated/azure_mgmt_network/models/address_space.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/application_gateway.rb +23 -4
- data/lib/generated/azure_mgmt_network/models/application_gateway_authentication_certificate.rb +12 -1
- data/lib/generated/azure_mgmt_network/models/application_gateway_available_ssl_options.rb +146 -0
- data/lib/generated/azure_mgmt_network/models/application_gateway_available_ssl_predefined_policies.rb +98 -0
- data/lib/generated/azure_mgmt_network/models/application_gateway_available_waf_rule_sets_result.rb +55 -0
- data/lib/generated/azure_mgmt_network/models/application_gateway_backend_address.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/application_gateway_backend_address_pool.rb +12 -1
- data/lib/generated/azure_mgmt_network/models/application_gateway_backend_health.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/application_gateway_backend_health_http_settings.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/application_gateway_backend_health_pool.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/application_gateway_backend_health_server.rb +7 -5
- data/lib/generated/azure_mgmt_network/models/application_gateway_backend_health_server_health.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/application_gateway_backend_http_settings.rb +77 -15
- data/lib/generated/azure_mgmt_network/models/application_gateway_connection_draining.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/application_gateway_cookie_based_affinity.rb +1 -1
- data/lib/generated/azure_mgmt_network/models/application_gateway_firewall_disabled_rule_group.rb +64 -0
- data/lib/generated/azure_mgmt_network/models/application_gateway_firewall_mode.rb +1 -1
- data/lib/generated/azure_mgmt_network/models/application_gateway_firewall_rule.rb +55 -0
- data/lib/generated/azure_mgmt_network/models/application_gateway_firewall_rule_group.rb +75 -0
- data/lib/generated/azure_mgmt_network/models/application_gateway_firewall_rule_set.rb +130 -0
- data/lib/generated/azure_mgmt_network/models/application_gateway_frontend_ipconfiguration.rb +13 -3
- data/lib/generated/azure_mgmt_network/models/application_gateway_frontend_port.rb +12 -1
- data/lib/generated/azure_mgmt_network/models/application_gateway_http_listener.rb +14 -3
- data/lib/generated/azure_mgmt_network/models/application_gateway_ipconfiguration.rb +12 -1
- data/lib/generated/azure_mgmt_network/models/application_gateway_list_result.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/application_gateway_operational_state.rb +1 -1
- data/lib/generated/azure_mgmt_network/models/application_gateway_path_rule.rb +28 -3
- data/lib/generated/azure_mgmt_network/models/application_gateway_probe.rb +48 -3
- data/lib/generated/azure_mgmt_network/models/application_gateway_probe_health_response_match.rb +65 -0
- data/lib/generated/azure_mgmt_network/models/application_gateway_protocol.rb +1 -1
- data/lib/generated/azure_mgmt_network/models/application_gateway_redirect_configuration.rb +185 -0
- data/lib/generated/azure_mgmt_network/models/application_gateway_redirect_type.rb +18 -0
- data/lib/generated/azure_mgmt_network/models/application_gateway_request_routing_rule.rb +25 -3
- data/lib/generated/azure_mgmt_network/models/application_gateway_request_routing_rule_type.rb +1 -1
- data/lib/generated/azure_mgmt_network/models/application_gateway_sku.rb +5 -7
- data/lib/generated/azure_mgmt_network/models/application_gateway_sku_name.rb +1 -1
- data/lib/generated/azure_mgmt_network/models/application_gateway_ssl_certificate.rb +12 -1
- data/lib/generated/azure_mgmt_network/models/application_gateway_ssl_cipher_suite.rb +39 -0
- data/lib/generated/azure_mgmt_network/models/application_gateway_ssl_policy.rb +58 -5
- data/lib/generated/azure_mgmt_network/models/application_gateway_ssl_policy_name.rb +17 -0
- data/lib/generated/azure_mgmt_network/models/application_gateway_ssl_policy_type.rb +16 -0
- data/lib/generated/azure_mgmt_network/models/application_gateway_ssl_predefined_policy.rb +82 -0
- data/lib/generated/azure_mgmt_network/models/application_gateway_ssl_protocol.rb +1 -1
- data/lib/generated/azure_mgmt_network/models/application_gateway_tier.rb +1 -1
- data/lib/generated/azure_mgmt_network/models/application_gateway_url_path_map.rb +24 -1
- data/lib/generated/azure_mgmt_network/models/application_gateway_web_application_firewall_configuration.rb +44 -4
- data/lib/generated/azure_mgmt_network/models/association_type.rb +1 -1
- data/lib/generated/azure_mgmt_network/models/authentication_method.rb +16 -0
- data/lib/generated/azure_mgmt_network/models/authorization_list_result.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/authorization_use_status.rb +1 -1
- data/lib/generated/azure_mgmt_network/models/azure_async_operation_result.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/backend_address_pool.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/bgp_peer_state.rb +1 -1
- data/lib/generated/azure_mgmt_network/models/bgp_peer_status.rb +3 -3
- data/lib/generated/azure_mgmt_network/models/bgp_peer_status_list_result.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/bgp_service_community.rb +15 -4
- data/lib/generated/azure_mgmt_network/models/bgp_service_community_list_result.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/bgp_settings.rb +3 -3
- data/lib/generated/azure_mgmt_network/models/bgpcommunity.rb +25 -4
- data/lib/generated/azure_mgmt_network/models/connection_reset_shared_key.rb +3 -3
- data/lib/generated/azure_mgmt_network/models/connection_shared_key.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/connection_status.rb +18 -0
- data/lib/generated/azure_mgmt_network/models/connectivity_destination.rb +67 -0
- data/lib/generated/azure_mgmt_network/models/connectivity_hop.rb +116 -0
- data/lib/generated/azure_mgmt_network/models/connectivity_information.rb +122 -0
- data/lib/generated/azure_mgmt_network/models/connectivity_issue.rb +100 -0
- data/lib/generated/azure_mgmt_network/models/connectivity_parameters.rb +57 -0
- data/lib/generated/azure_mgmt_network/models/connectivity_source.rb +57 -0
- data/lib/generated/azure_mgmt_network/models/dh_group.rb +22 -0
- data/lib/generated/azure_mgmt_network/models/dhcp_options.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/direction.rb +1 -1
- data/lib/generated/azure_mgmt_network/models/dns_name_availability_result.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/effective_network_security_group.rb +27 -1
- data/lib/generated/azure_mgmt_network/models/effective_network_security_group_association.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/effective_network_security_group_list_result.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/effective_network_security_rule.rb +78 -1
- data/lib/generated/azure_mgmt_network/models/effective_route.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/effective_route_list_result.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/effective_route_source.rb +1 -1
- data/lib/generated/azure_mgmt_network/models/effective_route_state.rb +1 -1
- data/lib/generated/azure_mgmt_network/models/error.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/error_details.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/express_route_circuit.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/express_route_circuit_arp_table.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/express_route_circuit_authorization.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/express_route_circuit_list_result.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/express_route_circuit_peering.rb +14 -1
- data/lib/generated/azure_mgmt_network/models/express_route_circuit_peering_advertised_public_prefix_state.rb +1 -1
- data/lib/generated/azure_mgmt_network/models/express_route_circuit_peering_config.rb +30 -1
- data/lib/generated/azure_mgmt_network/models/express_route_circuit_peering_list_result.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/express_route_circuit_peering_state.rb +1 -1
- data/lib/generated/azure_mgmt_network/models/express_route_circuit_peering_type.rb +1 -1
- data/lib/generated/azure_mgmt_network/models/express_route_circuit_routes_table.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/express_route_circuit_routes_table_summary.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/express_route_circuit_service_provider_properties.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/express_route_circuit_sku.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/express_route_circuit_sku_family.rb +1 -1
- data/lib/generated/azure_mgmt_network/models/express_route_circuit_sku_tier.rb +1 -1
- data/lib/generated/azure_mgmt_network/models/express_route_circuit_stats.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/express_route_circuits_arp_table_list_result.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/express_route_circuits_routes_table_list_result.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/express_route_circuits_routes_table_summary_list_result.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/express_route_service_provider.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/express_route_service_provider_bandwidths_offered.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/express_route_service_provider_list_result.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/flow_log_information.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/flow_log_status_parameters.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/frontend_ipconfiguration.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/gateway_route.rb +3 -3
- data/lib/generated/azure_mgmt_network/models/gateway_route_list_result.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/ike_encryption.rb +19 -0
- data/lib/generated/azure_mgmt_network/models/ike_integrity.rb +18 -0
- data/lib/generated/azure_mgmt_network/models/inbound_nat_pool.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/inbound_nat_rule.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/ipaddress_availability_result.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/ipallocation_method.rb +1 -1
- data/lib/generated/azure_mgmt_network/models/ipconfiguration.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/ipsec_encryption.rb +23 -0
- data/lib/generated/azure_mgmt_network/models/ipsec_integrity.rb +20 -0
- data/lib/generated/azure_mgmt_network/models/ipsec_policy.rb +127 -0
- data/lib/generated/azure_mgmt_network/models/ipv6express_route_circuit_peering_config.rb +90 -0
- data/lib/generated/azure_mgmt_network/models/ipversion.rb +1 -1
- data/lib/generated/azure_mgmt_network/models/issue_type.rb +23 -0
- data/lib/generated/azure_mgmt_network/models/load_balancer.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/load_balancer_list_result.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/load_balancing_rule.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/load_distribution.rb +1 -1
- data/lib/generated/azure_mgmt_network/models/local_network_gateway.rb +3 -2
- data/lib/generated/azure_mgmt_network/models/local_network_gateway_list_result.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/network_interface.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/network_interface_association.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/network_interface_dns_settings.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/network_interface_ipconfiguration.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/network_interface_list_result.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/network_operation_status.rb +1 -1
- data/lib/generated/azure_mgmt_network/models/network_security_group.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/network_security_group_list_result.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/network_watcher.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/network_watcher_list_result.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/next_hop_parameters.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/next_hop_result.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/next_hop_type.rb +1 -1
- data/lib/generated/azure_mgmt_network/models/origin.rb +17 -0
- data/lib/generated/azure_mgmt_network/models/outbound_nat_rule.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/packet_capture.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/packet_capture_filter.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/packet_capture_list_result.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/packet_capture_parameters.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/packet_capture_query_status_result.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/packet_capture_result.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/packet_capture_storage_location.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/patch_route_filter.rb +2 -2
- data/lib/generated/azure_mgmt_network/models/patch_route_filter_rule.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/pc_error.rb +1 -1
- data/lib/generated/azure_mgmt_network/models/pc_protocol.rb +1 -1
- data/lib/generated/azure_mgmt_network/models/pc_status.rb +1 -1
- data/lib/generated/azure_mgmt_network/models/pfs_group.rb +21 -0
- data/lib/generated/azure_mgmt_network/models/private_access_service_properties_format.rb +72 -0
- data/lib/generated/azure_mgmt_network/models/private_access_service_result.rb +64 -0
- data/lib/generated/azure_mgmt_network/models/private_access_services_list_result.rb +95 -0
- data/lib/generated/azure_mgmt_network/models/probe.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/probe_protocol.rb +1 -1
- data/lib/generated/azure_mgmt_network/models/processor_architecture.rb +1 -1
- data/lib/generated/azure_mgmt_network/models/protocol.rb +1 -1
- data/lib/generated/azure_mgmt_network/models/provisioning_state.rb +1 -1
- data/lib/generated/azure_mgmt_network/models/public_ipaddress.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/public_ipaddress_dns_settings.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/public_ipaddress_list_result.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/query_troubleshooting_parameters.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/resource_navigation_link.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/retention_policy_parameters.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/route.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/route_filter.rb +2 -2
- data/lib/generated/azure_mgmt_network/models/route_filter_list_result.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/route_filter_rule.rb +2 -2
- data/lib/generated/azure_mgmt_network/models/route_filter_rule_list_result.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/route_list_result.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/route_next_hop_type.rb +1 -1
- data/lib/generated/azure_mgmt_network/models/route_table.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/route_table_list_result.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/security_group_network_interface.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/security_group_view_parameters.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/security_group_view_result.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/security_rule.rb +38 -2
- data/lib/generated/azure_mgmt_network/models/security_rule_access.rb +1 -1
- data/lib/generated/azure_mgmt_network/models/security_rule_associations.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/security_rule_direction.rb +1 -1
- data/lib/generated/azure_mgmt_network/models/security_rule_list_result.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/security_rule_protocol.rb +1 -1
- data/lib/generated/azure_mgmt_network/models/service_provider_provisioning_state.rb +1 -1
- data/lib/generated/azure_mgmt_network/models/severity.rb +16 -0
- data/lib/generated/azure_mgmt_network/models/subnet.rb +21 -1
- data/lib/generated/azure_mgmt_network/models/subnet_association.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/subnet_list_result.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/topology.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/topology_association.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/topology_parameters.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/topology_resource.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/transport_protocol.rb +1 -1
- data/lib/generated/azure_mgmt_network/models/troubleshooting_details.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/troubleshooting_parameters.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/troubleshooting_recommended_actions.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/troubleshooting_result.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/tunnel_connection_health.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/usage.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/usage_name.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/usages_list_result.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/verification_ipflow_parameters.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/verification_ipflow_result.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/virtual_network.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/virtual_network_gateway.rb +27 -4
- data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_connection.rb +31 -1
- data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_connection_list_result.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_connection_status.rb +1 -1
- data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_connection_type.rb +1 -1
- data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_ipconfiguration.rb +4 -3
- data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_list_result.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_sku.rb +8 -9
- data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_sku_name.rb +4 -1
- data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_sku_tier.rb +4 -1
- data/lib/generated/azure_mgmt_network/models/virtual_network_gateway_type.rb +1 -1
- data/lib/generated/azure_mgmt_network/models/virtual_network_list_result.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/virtual_network_list_usage_result.rb +95 -0
- data/lib/generated/azure_mgmt_network/models/virtual_network_peering.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/virtual_network_peering_list_result.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/virtual_network_peering_state.rb +1 -1
- data/lib/generated/azure_mgmt_network/models/virtual_network_usage.rb +92 -0
- data/lib/generated/azure_mgmt_network/models/virtual_network_usage_name.rb +57 -0
- data/lib/generated/azure_mgmt_network/models/vpn_client_configuration.rb +20 -1
- data/lib/generated/azure_mgmt_network/models/vpn_client_parameters.rb +49 -4
- data/lib/generated/azure_mgmt_network/models/vpn_client_protocol.rb +16 -0
- data/lib/generated/azure_mgmt_network/models/vpn_client_revoked_certificate.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/vpn_client_root_certificate.rb +2 -1
- data/lib/generated/azure_mgmt_network/models/vpn_type.rb +1 -1
- data/lib/generated/azure_mgmt_network/module_definition.rb +1 -1
- data/lib/generated/azure_mgmt_network/network_interfaces.rb +58 -59
- data/lib/generated/azure_mgmt_network/network_management_client.rb +10 -5
- data/lib/generated/azure_mgmt_network/network_security_groups.rb +30 -31
- data/lib/generated/azure_mgmt_network/network_watchers.rb +281 -101
- data/lib/generated/azure_mgmt_network/packet_captures.rb +30 -31
- data/lib/generated/azure_mgmt_network/public_ipaddresses.rb +580 -31
- data/lib/generated/azure_mgmt_network/route_filter_rules.rb +32 -33
- data/lib/generated/azure_mgmt_network/route_filters.rb +38 -39
- data/lib/generated/azure_mgmt_network/route_tables.rb +30 -31
- data/lib/generated/azure_mgmt_network/routes.rb +24 -25
- data/lib/generated/azure_mgmt_network/security_rules.rb +24 -25
- data/lib/generated/azure_mgmt_network/subnets.rb +24 -25
- data/lib/generated/azure_mgmt_network/usages.rb +8 -9
- data/lib/generated/azure_mgmt_network/version.rb +2 -2
- data/lib/generated/azure_mgmt_network/virtual_network_gateway_connections.rb +46 -47
- data/lib/generated/azure_mgmt_network/virtual_network_gateways.rb +347 -119
- data/lib/generated/azure_mgmt_network/virtual_network_peerings.rb +24 -25
- data/lib/generated/azure_mgmt_network/virtual_networks.rb +234 -35
- metadata +45 -4
@@ -1,14 +1,13 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
6
6
|
module Azure::ARM::Network
|
7
7
|
#
|
8
|
-
#
|
8
|
+
# Network Client
|
9
9
|
#
|
10
10
|
class VirtualNetworkPeerings
|
11
|
-
include Azure::ARM::Network::Models
|
12
11
|
include MsRestAzure
|
13
12
|
|
14
13
|
#
|
@@ -113,7 +112,7 @@ module Azure::ARM::Network
|
|
113
112
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
114
113
|
fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil?
|
115
114
|
fail ArgumentError, 'virtual_network_peering_name is nil' if virtual_network_peering_name.nil?
|
116
|
-
api_version = '
|
115
|
+
api_version = '2017-06-01'
|
117
116
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
118
117
|
|
119
118
|
|
@@ -122,7 +121,7 @@ module Azure::ARM::Network
|
|
122
121
|
# Set Headers
|
123
122
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
124
123
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
125
|
-
path_template = '
|
124
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/virtualNetworkPeerings/{virtualNetworkPeeringName}'
|
126
125
|
|
127
126
|
request_url = @base_url || @client.base_url
|
128
127
|
|
@@ -149,8 +148,8 @@ module Azure::ARM::Network
|
|
149
148
|
if status_code == 200
|
150
149
|
begin
|
151
150
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
152
|
-
result_mapper = VirtualNetworkPeering.mapper()
|
153
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
151
|
+
result_mapper = Azure::ARM::Network::Models::VirtualNetworkPeering.mapper()
|
152
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
154
153
|
rescue Exception => e
|
155
154
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
156
155
|
end
|
@@ -199,8 +198,8 @@ module Azure::ARM::Network
|
|
199
198
|
promise = promise.then do |response|
|
200
199
|
# Defining deserialization method.
|
201
200
|
deserialize_method = lambda do |parsed_response|
|
202
|
-
result_mapper = VirtualNetworkPeering.mapper()
|
203
|
-
parsed_response = @client.deserialize(result_mapper, parsed_response
|
201
|
+
result_mapper = Azure::ARM::Network::Models::VirtualNetworkPeering.mapper()
|
202
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response)
|
204
203
|
end
|
205
204
|
|
206
205
|
# Waiting for response.
|
@@ -252,7 +251,7 @@ module Azure::ARM::Network
|
|
252
251
|
def list_async(resource_group_name, virtual_network_name, custom_headers = nil)
|
253
252
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
254
253
|
fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil?
|
255
|
-
api_version = '
|
254
|
+
api_version = '2017-06-01'
|
256
255
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
257
256
|
|
258
257
|
|
@@ -261,7 +260,7 @@ module Azure::ARM::Network
|
|
261
260
|
# Set Headers
|
262
261
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
263
262
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
264
|
-
path_template = '
|
263
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/virtualNetworkPeerings'
|
265
264
|
|
266
265
|
request_url = @base_url || @client.base_url
|
267
266
|
|
@@ -288,8 +287,8 @@ module Azure::ARM::Network
|
|
288
287
|
if status_code == 200
|
289
288
|
begin
|
290
289
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
291
|
-
result_mapper = VirtualNetworkPeeringListResult.mapper()
|
292
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
290
|
+
result_mapper = Azure::ARM::Network::Models::VirtualNetworkPeeringListResult.mapper()
|
291
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
293
292
|
rescue Exception => e
|
294
293
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
295
294
|
end
|
@@ -349,7 +348,7 @@ module Azure::ARM::Network
|
|
349
348
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
350
349
|
fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil?
|
351
350
|
fail ArgumentError, 'virtual_network_peering_name is nil' if virtual_network_peering_name.nil?
|
352
|
-
api_version = '
|
351
|
+
api_version = '2017-06-01'
|
353
352
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
354
353
|
|
355
354
|
|
@@ -358,7 +357,7 @@ module Azure::ARM::Network
|
|
358
357
|
# Set Headers
|
359
358
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
360
359
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
361
|
-
path_template = '
|
360
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/virtualNetworkPeerings/{virtualNetworkPeeringName}'
|
362
361
|
|
363
362
|
request_url = @base_url || @client.base_url
|
364
363
|
|
@@ -441,7 +440,7 @@ module Azure::ARM::Network
|
|
441
440
|
fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil?
|
442
441
|
fail ArgumentError, 'virtual_network_peering_name is nil' if virtual_network_peering_name.nil?
|
443
442
|
fail ArgumentError, 'virtual_network_peering_parameters is nil' if virtual_network_peering_parameters.nil?
|
444
|
-
api_version = '
|
443
|
+
api_version = '2017-06-01'
|
445
444
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
446
445
|
|
447
446
|
|
@@ -454,11 +453,11 @@ module Azure::ARM::Network
|
|
454
453
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
455
454
|
|
456
455
|
# Serialize Request
|
457
|
-
request_mapper = VirtualNetworkPeering.mapper()
|
458
|
-
request_content = @client.serialize(request_mapper, virtual_network_peering_parameters
|
456
|
+
request_mapper = Azure::ARM::Network::Models::VirtualNetworkPeering.mapper()
|
457
|
+
request_content = @client.serialize(request_mapper, virtual_network_peering_parameters)
|
459
458
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
460
459
|
|
461
|
-
path_template = '
|
460
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/virtualNetworkPeerings/{virtualNetworkPeeringName}'
|
462
461
|
|
463
462
|
request_url = @base_url || @client.base_url
|
464
463
|
|
@@ -486,8 +485,8 @@ module Azure::ARM::Network
|
|
486
485
|
if status_code == 200
|
487
486
|
begin
|
488
487
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
489
|
-
result_mapper = VirtualNetworkPeering.mapper()
|
490
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
488
|
+
result_mapper = Azure::ARM::Network::Models::VirtualNetworkPeering.mapper()
|
489
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
491
490
|
rescue Exception => e
|
492
491
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
493
492
|
end
|
@@ -496,8 +495,8 @@ module Azure::ARM::Network
|
|
496
495
|
if status_code == 201
|
497
496
|
begin
|
498
497
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
499
|
-
result_mapper = VirtualNetworkPeering.mapper()
|
500
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
498
|
+
result_mapper = Azure::ARM::Network::Models::VirtualNetworkPeering.mapper()
|
499
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
501
500
|
rescue Exception => e
|
502
501
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
503
502
|
end
|
@@ -583,8 +582,8 @@ module Azure::ARM::Network
|
|
583
582
|
if status_code == 200
|
584
583
|
begin
|
585
584
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
586
|
-
result_mapper = VirtualNetworkPeeringListResult.mapper()
|
587
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
585
|
+
result_mapper = Azure::ARM::Network::Models::VirtualNetworkPeeringListResult.mapper()
|
586
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
588
587
|
rescue Exception => e
|
589
588
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
590
589
|
end
|
@@ -1,14 +1,13 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
6
6
|
module Azure::ARM::Network
|
7
7
|
#
|
8
|
-
#
|
8
|
+
# Network Client
|
9
9
|
#
|
10
10
|
class VirtualNetworks
|
11
|
-
include Azure::ARM::Network::Models
|
12
11
|
include MsRestAzure
|
13
12
|
|
14
13
|
#
|
@@ -105,7 +104,7 @@ module Azure::ARM::Network
|
|
105
104
|
def get_async(resource_group_name, virtual_network_name, expand = nil, custom_headers = nil)
|
106
105
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
107
106
|
fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil?
|
108
|
-
api_version = '
|
107
|
+
api_version = '2017-06-01'
|
109
108
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
110
109
|
|
111
110
|
|
@@ -114,7 +113,7 @@ module Azure::ARM::Network
|
|
114
113
|
# Set Headers
|
115
114
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
116
115
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
117
|
-
path_template = '
|
116
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}'
|
118
117
|
|
119
118
|
request_url = @base_url || @client.base_url
|
120
119
|
|
@@ -141,8 +140,8 @@ module Azure::ARM::Network
|
|
141
140
|
if status_code == 200
|
142
141
|
begin
|
143
142
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
144
|
-
result_mapper = VirtualNetwork.mapper()
|
145
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
143
|
+
result_mapper = Azure::ARM::Network::Models::VirtualNetwork.mapper()
|
144
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
146
145
|
rescue Exception => e
|
147
146
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
148
147
|
end
|
@@ -189,8 +188,8 @@ module Azure::ARM::Network
|
|
189
188
|
promise = promise.then do |response|
|
190
189
|
# Defining deserialization method.
|
191
190
|
deserialize_method = lambda do |parsed_response|
|
192
|
-
result_mapper = VirtualNetwork.mapper()
|
193
|
-
parsed_response = @client.deserialize(result_mapper, parsed_response
|
191
|
+
result_mapper = Azure::ARM::Network::Models::VirtualNetwork.mapper()
|
192
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response)
|
194
193
|
end
|
195
194
|
|
196
195
|
# Waiting for response.
|
@@ -234,7 +233,7 @@ module Azure::ARM::Network
|
|
234
233
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
235
234
|
#
|
236
235
|
def list_all_async(custom_headers = nil)
|
237
|
-
api_version = '
|
236
|
+
api_version = '2017-06-01'
|
238
237
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
239
238
|
|
240
239
|
|
@@ -243,7 +242,7 @@ module Azure::ARM::Network
|
|
243
242
|
# Set Headers
|
244
243
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
245
244
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
246
|
-
path_template = '
|
245
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Network/virtualNetworks'
|
247
246
|
|
248
247
|
request_url = @base_url || @client.base_url
|
249
248
|
|
@@ -270,8 +269,8 @@ module Azure::ARM::Network
|
|
270
269
|
if status_code == 200
|
271
270
|
begin
|
272
271
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
273
|
-
result_mapper = VirtualNetworkListResult.mapper()
|
274
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
272
|
+
result_mapper = Azure::ARM::Network::Models::VirtualNetworkListResult.mapper()
|
273
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
275
274
|
rescue Exception => e
|
276
275
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
277
276
|
end
|
@@ -321,7 +320,7 @@ module Azure::ARM::Network
|
|
321
320
|
#
|
322
321
|
def list_async(resource_group_name, custom_headers = nil)
|
323
322
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
324
|
-
api_version = '
|
323
|
+
api_version = '2017-06-01'
|
325
324
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
326
325
|
|
327
326
|
|
@@ -330,7 +329,7 @@ module Azure::ARM::Network
|
|
330
329
|
# Set Headers
|
331
330
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
332
331
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
333
|
-
path_template = '
|
332
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks'
|
334
333
|
|
335
334
|
request_url = @base_url || @client.base_url
|
336
335
|
|
@@ -357,8 +356,8 @@ module Azure::ARM::Network
|
|
357
356
|
if status_code == 200
|
358
357
|
begin
|
359
358
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
360
|
-
result_mapper = VirtualNetworkListResult.mapper()
|
361
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
359
|
+
result_mapper = Azure::ARM::Network::Models::VirtualNetworkListResult.mapper()
|
360
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
362
361
|
rescue Exception => e
|
363
362
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
364
363
|
end
|
@@ -415,7 +414,7 @@ module Azure::ARM::Network
|
|
415
414
|
def check_ipaddress_availability_async(resource_group_name, virtual_network_name, ip_address = nil, custom_headers = nil)
|
416
415
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
417
416
|
fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil?
|
418
|
-
api_version = '
|
417
|
+
api_version = '2017-06-01'
|
419
418
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
420
419
|
|
421
420
|
|
@@ -424,7 +423,7 @@ module Azure::ARM::Network
|
|
424
423
|
# Set Headers
|
425
424
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
426
425
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
427
|
-
path_template = '
|
426
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/CheckIPAddressAvailability'
|
428
427
|
|
429
428
|
request_url = @base_url || @client.base_url
|
430
429
|
|
@@ -451,8 +450,99 @@ module Azure::ARM::Network
|
|
451
450
|
if status_code == 200
|
452
451
|
begin
|
453
452
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
454
|
-
result_mapper = IPAddressAvailabilityResult.mapper()
|
455
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
453
|
+
result_mapper = Azure::ARM::Network::Models::IPAddressAvailabilityResult.mapper()
|
454
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
455
|
+
rescue Exception => e
|
456
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
457
|
+
end
|
458
|
+
end
|
459
|
+
|
460
|
+
result
|
461
|
+
end
|
462
|
+
|
463
|
+
promise.execute
|
464
|
+
end
|
465
|
+
|
466
|
+
#
|
467
|
+
# Lists usage stats.
|
468
|
+
#
|
469
|
+
# @param resource_group_name [String] The name of the resource group.
|
470
|
+
# @param virtual_network_name [String] The name of the virtual network.
|
471
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
472
|
+
# will be added to the HTTP request.
|
473
|
+
#
|
474
|
+
# @return [Array<VirtualNetworkUsage>] operation results.
|
475
|
+
#
|
476
|
+
def list_usage(resource_group_name, virtual_network_name, custom_headers = nil)
|
477
|
+
first_page = list_usage_as_lazy(resource_group_name, virtual_network_name, custom_headers)
|
478
|
+
first_page.get_all_items
|
479
|
+
end
|
480
|
+
|
481
|
+
#
|
482
|
+
# Lists usage stats.
|
483
|
+
#
|
484
|
+
# @param resource_group_name [String] The name of the resource group.
|
485
|
+
# @param virtual_network_name [String] The name of the virtual network.
|
486
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
487
|
+
# will be added to the HTTP request.
|
488
|
+
#
|
489
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
490
|
+
#
|
491
|
+
def list_usage_with_http_info(resource_group_name, virtual_network_name, custom_headers = nil)
|
492
|
+
list_usage_async(resource_group_name, virtual_network_name, custom_headers).value!
|
493
|
+
end
|
494
|
+
|
495
|
+
#
|
496
|
+
# Lists usage stats.
|
497
|
+
#
|
498
|
+
# @param resource_group_name [String] The name of the resource group.
|
499
|
+
# @param virtual_network_name [String] The name of the virtual network.
|
500
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
501
|
+
# to the HTTP request.
|
502
|
+
#
|
503
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
504
|
+
#
|
505
|
+
def list_usage_async(resource_group_name, virtual_network_name, custom_headers = nil)
|
506
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
507
|
+
fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil?
|
508
|
+
api_version = '2017-06-01'
|
509
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
510
|
+
|
511
|
+
|
512
|
+
request_headers = {}
|
513
|
+
|
514
|
+
# Set Headers
|
515
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
516
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
517
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/usages'
|
518
|
+
|
519
|
+
request_url = @base_url || @client.base_url
|
520
|
+
|
521
|
+
options = {
|
522
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
523
|
+
path_params: {'resourceGroupName' => resource_group_name,'virtualNetworkName' => virtual_network_name,'subscriptionId' => @client.subscription_id},
|
524
|
+
query_params: {'api-version' => api_version},
|
525
|
+
headers: request_headers.merge(custom_headers || {}),
|
526
|
+
base_url: request_url
|
527
|
+
}
|
528
|
+
promise = @client.make_request_async(:get, path_template, options)
|
529
|
+
|
530
|
+
promise = promise.then do |result|
|
531
|
+
http_response = result.response
|
532
|
+
status_code = http_response.status
|
533
|
+
response_content = http_response.body
|
534
|
+
unless status_code == 200
|
535
|
+
error_model = JSON.load(response_content)
|
536
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
537
|
+
end
|
538
|
+
|
539
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
540
|
+
# Deserialize Response
|
541
|
+
if status_code == 200
|
542
|
+
begin
|
543
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
544
|
+
result_mapper = Azure::ARM::Network::Models::VirtualNetworkListUsageResult.mapper()
|
545
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
456
546
|
rescue Exception => e
|
457
547
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
458
548
|
end
|
@@ -505,7 +595,7 @@ module Azure::ARM::Network
|
|
505
595
|
def begin_delete_async(resource_group_name, virtual_network_name, custom_headers = nil)
|
506
596
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
507
597
|
fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil?
|
508
|
-
api_version = '
|
598
|
+
api_version = '2017-06-01'
|
509
599
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
510
600
|
|
511
601
|
|
@@ -514,7 +604,7 @@ module Azure::ARM::Network
|
|
514
604
|
# Set Headers
|
515
605
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
516
606
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
517
|
-
path_template = '
|
607
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}'
|
518
608
|
|
519
609
|
request_url = @base_url || @client.base_url
|
520
610
|
|
@@ -593,7 +683,7 @@ module Azure::ARM::Network
|
|
593
683
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
594
684
|
fail ArgumentError, 'virtual_network_name is nil' if virtual_network_name.nil?
|
595
685
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
596
|
-
api_version = '
|
686
|
+
api_version = '2017-06-01'
|
597
687
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
598
688
|
|
599
689
|
|
@@ -606,11 +696,11 @@ module Azure::ARM::Network
|
|
606
696
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
607
697
|
|
608
698
|
# Serialize Request
|
609
|
-
request_mapper = VirtualNetwork.mapper()
|
610
|
-
request_content = @client.serialize(request_mapper, parameters
|
699
|
+
request_mapper = Azure::ARM::Network::Models::VirtualNetwork.mapper()
|
700
|
+
request_content = @client.serialize(request_mapper, parameters)
|
611
701
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
612
702
|
|
613
|
-
path_template = '
|
703
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}'
|
614
704
|
|
615
705
|
request_url = @base_url || @client.base_url
|
616
706
|
|
@@ -638,8 +728,8 @@ module Azure::ARM::Network
|
|
638
728
|
if status_code == 200
|
639
729
|
begin
|
640
730
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
641
|
-
result_mapper = VirtualNetwork.mapper()
|
642
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
731
|
+
result_mapper = Azure::ARM::Network::Models::VirtualNetwork.mapper()
|
732
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
643
733
|
rescue Exception => e
|
644
734
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
645
735
|
end
|
@@ -648,8 +738,8 @@ module Azure::ARM::Network
|
|
648
738
|
if status_code == 201
|
649
739
|
begin
|
650
740
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
651
|
-
result_mapper = VirtualNetwork.mapper()
|
652
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
741
|
+
result_mapper = Azure::ARM::Network::Models::VirtualNetwork.mapper()
|
742
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
653
743
|
rescue Exception => e
|
654
744
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
655
745
|
end
|
@@ -735,8 +825,8 @@ module Azure::ARM::Network
|
|
735
825
|
if status_code == 200
|
736
826
|
begin
|
737
827
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
738
|
-
result_mapper = VirtualNetworkListResult.mapper()
|
739
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
828
|
+
result_mapper = Azure::ARM::Network::Models::VirtualNetworkListResult.mapper()
|
829
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
740
830
|
rescue Exception => e
|
741
831
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
742
832
|
end
|
@@ -822,8 +912,95 @@ module Azure::ARM::Network
|
|
822
912
|
if status_code == 200
|
823
913
|
begin
|
824
914
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
825
|
-
result_mapper = VirtualNetworkListResult.mapper()
|
826
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
915
|
+
result_mapper = Azure::ARM::Network::Models::VirtualNetworkListResult.mapper()
|
916
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
917
|
+
rescue Exception => e
|
918
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
919
|
+
end
|
920
|
+
end
|
921
|
+
|
922
|
+
result
|
923
|
+
end
|
924
|
+
|
925
|
+
promise.execute
|
926
|
+
end
|
927
|
+
|
928
|
+
#
|
929
|
+
# Lists usage stats.
|
930
|
+
#
|
931
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
932
|
+
# to List operation.
|
933
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
934
|
+
# will be added to the HTTP request.
|
935
|
+
#
|
936
|
+
# @return [VirtualNetworkListUsageResult] operation results.
|
937
|
+
#
|
938
|
+
def list_usage_next(next_page_link, custom_headers = nil)
|
939
|
+
response = list_usage_next_async(next_page_link, custom_headers).value!
|
940
|
+
response.body unless response.nil?
|
941
|
+
end
|
942
|
+
|
943
|
+
#
|
944
|
+
# Lists usage stats.
|
945
|
+
#
|
946
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
947
|
+
# to List operation.
|
948
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
949
|
+
# will be added to the HTTP request.
|
950
|
+
#
|
951
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
952
|
+
#
|
953
|
+
def list_usage_next_with_http_info(next_page_link, custom_headers = nil)
|
954
|
+
list_usage_next_async(next_page_link, custom_headers).value!
|
955
|
+
end
|
956
|
+
|
957
|
+
#
|
958
|
+
# Lists usage stats.
|
959
|
+
#
|
960
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
961
|
+
# to List operation.
|
962
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
963
|
+
# to the HTTP request.
|
964
|
+
#
|
965
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
966
|
+
#
|
967
|
+
def list_usage_next_async(next_page_link, custom_headers = nil)
|
968
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
969
|
+
|
970
|
+
|
971
|
+
request_headers = {}
|
972
|
+
|
973
|
+
# Set Headers
|
974
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
975
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
976
|
+
path_template = '{nextLink}'
|
977
|
+
|
978
|
+
request_url = @base_url || @client.base_url
|
979
|
+
|
980
|
+
options = {
|
981
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
982
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
983
|
+
headers: request_headers.merge(custom_headers || {}),
|
984
|
+
base_url: request_url
|
985
|
+
}
|
986
|
+
promise = @client.make_request_async(:get, path_template, options)
|
987
|
+
|
988
|
+
promise = promise.then do |result|
|
989
|
+
http_response = result.response
|
990
|
+
status_code = http_response.status
|
991
|
+
response_content = http_response.body
|
992
|
+
unless status_code == 200
|
993
|
+
error_model = JSON.load(response_content)
|
994
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
995
|
+
end
|
996
|
+
|
997
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
998
|
+
# Deserialize Response
|
999
|
+
if status_code == 200
|
1000
|
+
begin
|
1001
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1002
|
+
result_mapper = Azure::ARM::Network::Models::VirtualNetworkListUsageResult.mapper()
|
1003
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
827
1004
|
rescue Exception => e
|
828
1005
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
829
1006
|
end
|
@@ -876,5 +1053,27 @@ module Azure::ARM::Network
|
|
876
1053
|
end
|
877
1054
|
end
|
878
1055
|
|
1056
|
+
#
|
1057
|
+
# Lists usage stats.
|
1058
|
+
#
|
1059
|
+
# @param resource_group_name [String] The name of the resource group.
|
1060
|
+
# @param virtual_network_name [String] The name of the virtual network.
|
1061
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1062
|
+
# will be added to the HTTP request.
|
1063
|
+
#
|
1064
|
+
# @return [VirtualNetworkListUsageResult] which provide lazy access to pages of
|
1065
|
+
# the response.
|
1066
|
+
#
|
1067
|
+
def list_usage_as_lazy(resource_group_name, virtual_network_name, custom_headers = nil)
|
1068
|
+
response = list_usage_async(resource_group_name, virtual_network_name, custom_headers).value!
|
1069
|
+
unless response.nil?
|
1070
|
+
page = response.body
|
1071
|
+
page.next_method = Proc.new do |next_page_link|
|
1072
|
+
list_usage_next_async(next_page_link, custom_headers)
|
1073
|
+
end
|
1074
|
+
page
|
1075
|
+
end
|
1076
|
+
end
|
1077
|
+
|
879
1078
|
end
|
880
1079
|
end
|