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 PacketCaptures
|
11
|
-
include Azure::ARM::Network::Models
|
12
11
|
include MsRestAzure
|
13
12
|
|
14
13
|
#
|
@@ -59,8 +58,8 @@ module Azure::ARM::Network
|
|
59
58
|
promise = promise.then do |response|
|
60
59
|
# Defining deserialization method.
|
61
60
|
deserialize_method = lambda do |parsed_response|
|
62
|
-
result_mapper = PacketCaptureResult.mapper()
|
63
|
-
parsed_response = @client.deserialize(result_mapper, parsed_response
|
61
|
+
result_mapper = Azure::ARM::Network::Models::PacketCaptureResult.mapper()
|
62
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response)
|
64
63
|
end
|
65
64
|
|
66
65
|
# Waiting for response.
|
@@ -116,7 +115,7 @@ module Azure::ARM::Network
|
|
116
115
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
117
116
|
fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil?
|
118
117
|
fail ArgumentError, 'packet_capture_name is nil' if packet_capture_name.nil?
|
119
|
-
api_version = '
|
118
|
+
api_version = '2017-06-01'
|
120
119
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
121
120
|
|
122
121
|
|
@@ -125,7 +124,7 @@ module Azure::ARM::Network
|
|
125
124
|
# Set Headers
|
126
125
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
127
126
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
128
|
-
path_template = '
|
127
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/packetCaptures/{packetCaptureName}'
|
129
128
|
|
130
129
|
request_url = @base_url || @client.base_url
|
131
130
|
|
@@ -152,8 +151,8 @@ module Azure::ARM::Network
|
|
152
151
|
if status_code == 200
|
153
152
|
begin
|
154
153
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
155
|
-
result_mapper = PacketCaptureResult.mapper()
|
156
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
154
|
+
result_mapper = Azure::ARM::Network::Models::PacketCaptureResult.mapper()
|
155
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
157
156
|
rescue Exception => e
|
158
157
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
159
158
|
end
|
@@ -282,8 +281,8 @@ module Azure::ARM::Network
|
|
282
281
|
promise = promise.then do |response|
|
283
282
|
# Defining deserialization method.
|
284
283
|
deserialize_method = lambda do |parsed_response|
|
285
|
-
result_mapper = PacketCaptureQueryStatusResult.mapper()
|
286
|
-
parsed_response = @client.deserialize(result_mapper, parsed_response
|
284
|
+
result_mapper = Azure::ARM::Network::Models::PacketCaptureQueryStatusResult.mapper()
|
285
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response)
|
287
286
|
end
|
288
287
|
|
289
288
|
# Waiting for response.
|
@@ -338,7 +337,7 @@ module Azure::ARM::Network
|
|
338
337
|
def list_async(resource_group_name, network_watcher_name, custom_headers = nil)
|
339
338
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
340
339
|
fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil?
|
341
|
-
api_version = '
|
340
|
+
api_version = '2017-06-01'
|
342
341
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
343
342
|
|
344
343
|
|
@@ -347,7 +346,7 @@ module Azure::ARM::Network
|
|
347
346
|
# Set Headers
|
348
347
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
349
348
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
350
|
-
path_template = '
|
349
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/packetCaptures'
|
351
350
|
|
352
351
|
request_url = @base_url || @client.base_url
|
353
352
|
|
@@ -374,8 +373,8 @@ module Azure::ARM::Network
|
|
374
373
|
if status_code == 200
|
375
374
|
begin
|
376
375
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
377
|
-
result_mapper = PacketCaptureListResult.mapper()
|
378
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
376
|
+
result_mapper = Azure::ARM::Network::Models::PacketCaptureListResult.mapper()
|
377
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
379
378
|
rescue Exception => e
|
380
379
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
381
380
|
end
|
@@ -440,7 +439,7 @@ module Azure::ARM::Network
|
|
440
439
|
fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil?
|
441
440
|
fail ArgumentError, 'packet_capture_name is nil' if packet_capture_name.nil?
|
442
441
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
443
|
-
api_version = '
|
442
|
+
api_version = '2017-06-01'
|
444
443
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
445
444
|
|
446
445
|
|
@@ -453,11 +452,11 @@ module Azure::ARM::Network
|
|
453
452
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
454
453
|
|
455
454
|
# Serialize Request
|
456
|
-
request_mapper = PacketCapture.mapper()
|
457
|
-
request_content = @client.serialize(request_mapper, parameters
|
455
|
+
request_mapper = Azure::ARM::Network::Models::PacketCapture.mapper()
|
456
|
+
request_content = @client.serialize(request_mapper, parameters)
|
458
457
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
459
458
|
|
460
|
-
path_template = '
|
459
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/packetCaptures/{packetCaptureName}'
|
461
460
|
|
462
461
|
request_url = @base_url || @client.base_url
|
463
462
|
|
@@ -485,8 +484,8 @@ module Azure::ARM::Network
|
|
485
484
|
if status_code == 201
|
486
485
|
begin
|
487
486
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
488
|
-
result_mapper = PacketCaptureResult.mapper()
|
489
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
487
|
+
result_mapper = Azure::ARM::Network::Models::PacketCaptureResult.mapper()
|
488
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
490
489
|
rescue Exception => e
|
491
490
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
492
491
|
end
|
@@ -543,7 +542,7 @@ module Azure::ARM::Network
|
|
543
542
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
544
543
|
fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil?
|
545
544
|
fail ArgumentError, 'packet_capture_name is nil' if packet_capture_name.nil?
|
546
|
-
api_version = '
|
545
|
+
api_version = '2017-06-01'
|
547
546
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
548
547
|
|
549
548
|
|
@@ -552,7 +551,7 @@ module Azure::ARM::Network
|
|
552
551
|
# Set Headers
|
553
552
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
554
553
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
555
|
-
path_template = '
|
554
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/packetCaptures/{packetCaptureName}'
|
556
555
|
|
557
556
|
request_url = @base_url || @client.base_url
|
558
557
|
|
@@ -627,7 +626,7 @@ module Azure::ARM::Network
|
|
627
626
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
628
627
|
fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil?
|
629
628
|
fail ArgumentError, 'packet_capture_name is nil' if packet_capture_name.nil?
|
630
|
-
api_version = '
|
629
|
+
api_version = '2017-06-01'
|
631
630
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
632
631
|
|
633
632
|
|
@@ -636,7 +635,7 @@ module Azure::ARM::Network
|
|
636
635
|
# Set Headers
|
637
636
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
638
637
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
639
|
-
path_template = '
|
638
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/packetCaptures/{packetCaptureName}/stop'
|
640
639
|
|
641
640
|
request_url = @base_url || @client.base_url
|
642
641
|
|
@@ -718,7 +717,7 @@ module Azure::ARM::Network
|
|
718
717
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
719
718
|
fail ArgumentError, 'network_watcher_name is nil' if network_watcher_name.nil?
|
720
719
|
fail ArgumentError, 'packet_capture_name is nil' if packet_capture_name.nil?
|
721
|
-
api_version = '
|
720
|
+
api_version = '2017-06-01'
|
722
721
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
723
722
|
|
724
723
|
|
@@ -727,7 +726,7 @@ module Azure::ARM::Network
|
|
727
726
|
# Set Headers
|
728
727
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
729
728
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
730
|
-
path_template = '
|
729
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/packetCaptures/{packetCaptureName}/queryStatus'
|
731
730
|
|
732
731
|
request_url = @base_url || @client.base_url
|
733
732
|
|
@@ -754,8 +753,8 @@ module Azure::ARM::Network
|
|
754
753
|
if status_code == 200
|
755
754
|
begin
|
756
755
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
757
|
-
result_mapper = PacketCaptureQueryStatusResult.mapper()
|
758
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
756
|
+
result_mapper = Azure::ARM::Network::Models::PacketCaptureQueryStatusResult.mapper()
|
757
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
759
758
|
rescue Exception => e
|
760
759
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
761
760
|
end
|
@@ -764,8 +763,8 @@ module Azure::ARM::Network
|
|
764
763
|
if status_code == 202
|
765
764
|
begin
|
766
765
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
767
|
-
result_mapper = PacketCaptureQueryStatusResult.mapper()
|
768
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
766
|
+
result_mapper = Azure::ARM::Network::Models::PacketCaptureQueryStatusResult.mapper()
|
767
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
769
768
|
rescue Exception => e
|
770
769
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
771
770
|
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 PublicIPAddresses
|
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, public_ip_address_name, expand = nil, custom_headers = nil)
|
106
105
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
107
106
|
fail ArgumentError, 'public_ip_address_name is nil' if public_ip_address_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/publicIPAddresses/{publicIpAddressName}'
|
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 = PublicIPAddress.mapper()
|
145
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
143
|
+
result_mapper = Azure::ARM::Network::Models::PublicIPAddress.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 = PublicIPAddress.mapper()
|
193
|
-
parsed_response = @client.deserialize(result_mapper, parsed_response
|
191
|
+
result_mapper = Azure::ARM::Network::Models::PublicIPAddress.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/publicIPAddresses'
|
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 = PublicIPAddressListResult.mapper()
|
274
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
272
|
+
result_mapper = Azure::ARM::Network::Models::PublicIPAddressListResult.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/publicIPAddresses'
|
334
333
|
|
335
334
|
request_url = @base_url || @client.base_url
|
336
335
|
|
@@ -357,8 +356,327 @@ 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 = PublicIPAddressListResult.mapper()
|
361
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
359
|
+
result_mapper = Azure::ARM::Network::Models::PublicIPAddressListResult.mapper()
|
360
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
361
|
+
rescue Exception => e
|
362
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
363
|
+
end
|
364
|
+
end
|
365
|
+
|
366
|
+
result
|
367
|
+
end
|
368
|
+
|
369
|
+
promise.execute
|
370
|
+
end
|
371
|
+
|
372
|
+
#
|
373
|
+
# Gets information about all public IP addresses on a virtual machine scale set
|
374
|
+
# level.
|
375
|
+
#
|
376
|
+
# @param resource_group_name [String] The name of the resource group.
|
377
|
+
# @param virtual_machine_scale_set_name [String] The name of the virtual
|
378
|
+
# machine scale set.
|
379
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
380
|
+
# will be added to the HTTP request.
|
381
|
+
#
|
382
|
+
# @return [Array<PublicIPAddress>] operation results.
|
383
|
+
#
|
384
|
+
def list_virtual_machine_scale_set_public_ipaddresses(resource_group_name, virtual_machine_scale_set_name, custom_headers = nil)
|
385
|
+
first_page = list_virtual_machine_scale_set_public_ipaddresses_as_lazy(resource_group_name, virtual_machine_scale_set_name, custom_headers)
|
386
|
+
first_page.get_all_items
|
387
|
+
end
|
388
|
+
|
389
|
+
#
|
390
|
+
# Gets information about all public IP addresses on a virtual machine scale set
|
391
|
+
# level.
|
392
|
+
#
|
393
|
+
# @param resource_group_name [String] The name of the resource group.
|
394
|
+
# @param virtual_machine_scale_set_name [String] The name of the virtual
|
395
|
+
# machine scale set.
|
396
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
397
|
+
# will be added to the HTTP request.
|
398
|
+
#
|
399
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
400
|
+
#
|
401
|
+
def list_virtual_machine_scale_set_public_ipaddresses_with_http_info(resource_group_name, virtual_machine_scale_set_name, custom_headers = nil)
|
402
|
+
list_virtual_machine_scale_set_public_ipaddresses_async(resource_group_name, virtual_machine_scale_set_name, custom_headers).value!
|
403
|
+
end
|
404
|
+
|
405
|
+
#
|
406
|
+
# Gets information about all public IP addresses on a virtual machine scale set
|
407
|
+
# level.
|
408
|
+
#
|
409
|
+
# @param resource_group_name [String] The name of the resource group.
|
410
|
+
# @param virtual_machine_scale_set_name [String] The name of the virtual
|
411
|
+
# machine scale set.
|
412
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
413
|
+
# to the HTTP request.
|
414
|
+
#
|
415
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
416
|
+
#
|
417
|
+
def list_virtual_machine_scale_set_public_ipaddresses_async(resource_group_name, virtual_machine_scale_set_name, custom_headers = nil)
|
418
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
419
|
+
fail ArgumentError, 'virtual_machine_scale_set_name is nil' if virtual_machine_scale_set_name.nil?
|
420
|
+
api_version = '2017-03-30'
|
421
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
422
|
+
|
423
|
+
|
424
|
+
request_headers = {}
|
425
|
+
|
426
|
+
# Set Headers
|
427
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
428
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
429
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/publicipaddresses'
|
430
|
+
|
431
|
+
request_url = @base_url || @client.base_url
|
432
|
+
|
433
|
+
options = {
|
434
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
435
|
+
path_params: {'resourceGroupName' => resource_group_name,'virtualMachineScaleSetName' => virtual_machine_scale_set_name,'subscriptionId' => @client.subscription_id},
|
436
|
+
query_params: {'api-version' => api_version},
|
437
|
+
headers: request_headers.merge(custom_headers || {}),
|
438
|
+
base_url: request_url
|
439
|
+
}
|
440
|
+
promise = @client.make_request_async(:get, path_template, options)
|
441
|
+
|
442
|
+
promise = promise.then do |result|
|
443
|
+
http_response = result.response
|
444
|
+
status_code = http_response.status
|
445
|
+
response_content = http_response.body
|
446
|
+
unless status_code == 200
|
447
|
+
error_model = JSON.load(response_content)
|
448
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
449
|
+
end
|
450
|
+
|
451
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
452
|
+
# Deserialize Response
|
453
|
+
if status_code == 200
|
454
|
+
begin
|
455
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
456
|
+
result_mapper = Azure::ARM::Network::Models::PublicIPAddressListResult.mapper()
|
457
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
458
|
+
rescue Exception => e
|
459
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
460
|
+
end
|
461
|
+
end
|
462
|
+
|
463
|
+
result
|
464
|
+
end
|
465
|
+
|
466
|
+
promise.execute
|
467
|
+
end
|
468
|
+
|
469
|
+
#
|
470
|
+
# Gets information about all public IP addresses in a virtual machine IP
|
471
|
+
# configuration in a virtual machine scale set.
|
472
|
+
#
|
473
|
+
# @param resource_group_name [String] The name of the resource group.
|
474
|
+
# @param virtual_machine_scale_set_name [String] The name of the virtual
|
475
|
+
# machine scale set.
|
476
|
+
# @param virtualmachine_index [String] The virtual machine index.
|
477
|
+
# @param network_interface_name [String] The network interface name.
|
478
|
+
# @param ip_configuration_name [String] The IP configuration name.
|
479
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
480
|
+
# will be added to the HTTP request.
|
481
|
+
#
|
482
|
+
# @return [Array<PublicIPAddress>] operation results.
|
483
|
+
#
|
484
|
+
def list_virtual_machine_scale_set_vmpublic_ipaddresses(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, ip_configuration_name, custom_headers = nil)
|
485
|
+
first_page = list_virtual_machine_scale_set_vmpublic_ipaddresses_as_lazy(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, ip_configuration_name, custom_headers)
|
486
|
+
first_page.get_all_items
|
487
|
+
end
|
488
|
+
|
489
|
+
#
|
490
|
+
# Gets information about all public IP addresses in a virtual machine IP
|
491
|
+
# configuration in a virtual machine scale set.
|
492
|
+
#
|
493
|
+
# @param resource_group_name [String] The name of the resource group.
|
494
|
+
# @param virtual_machine_scale_set_name [String] The name of the virtual
|
495
|
+
# machine scale set.
|
496
|
+
# @param virtualmachine_index [String] The virtual machine index.
|
497
|
+
# @param network_interface_name [String] The network interface name.
|
498
|
+
# @param ip_configuration_name [String] The IP configuration name.
|
499
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
500
|
+
# will be added to the HTTP request.
|
501
|
+
#
|
502
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
503
|
+
#
|
504
|
+
def list_virtual_machine_scale_set_vmpublic_ipaddresses_with_http_info(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, ip_configuration_name, custom_headers = nil)
|
505
|
+
list_virtual_machine_scale_set_vmpublic_ipaddresses_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, ip_configuration_name, custom_headers).value!
|
506
|
+
end
|
507
|
+
|
508
|
+
#
|
509
|
+
# Gets information about all public IP addresses in a virtual machine IP
|
510
|
+
# configuration in a virtual machine scale set.
|
511
|
+
#
|
512
|
+
# @param resource_group_name [String] The name of the resource group.
|
513
|
+
# @param virtual_machine_scale_set_name [String] The name of the virtual
|
514
|
+
# machine scale set.
|
515
|
+
# @param virtualmachine_index [String] The virtual machine index.
|
516
|
+
# @param network_interface_name [String] The network interface name.
|
517
|
+
# @param ip_configuration_name [String] The IP configuration name.
|
518
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
519
|
+
# to the HTTP request.
|
520
|
+
#
|
521
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
522
|
+
#
|
523
|
+
def list_virtual_machine_scale_set_vmpublic_ipaddresses_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, ip_configuration_name, custom_headers = nil)
|
524
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
525
|
+
fail ArgumentError, 'virtual_machine_scale_set_name is nil' if virtual_machine_scale_set_name.nil?
|
526
|
+
fail ArgumentError, 'virtualmachine_index is nil' if virtualmachine_index.nil?
|
527
|
+
fail ArgumentError, 'network_interface_name is nil' if network_interface_name.nil?
|
528
|
+
fail ArgumentError, 'ip_configuration_name is nil' if ip_configuration_name.nil?
|
529
|
+
api_version = '2017-03-30'
|
530
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
531
|
+
|
532
|
+
|
533
|
+
request_headers = {}
|
534
|
+
|
535
|
+
# Set Headers
|
536
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
537
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
538
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{virtualmachineIndex}/networkInterfaces/{networkInterfaceName}/ipconfigurations/{ipConfigurationName}/publicipaddresses'
|
539
|
+
|
540
|
+
request_url = @base_url || @client.base_url
|
541
|
+
|
542
|
+
options = {
|
543
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
544
|
+
path_params: {'resourceGroupName' => resource_group_name,'virtualMachineScaleSetName' => virtual_machine_scale_set_name,'virtualmachineIndex' => virtualmachine_index,'networkInterfaceName' => network_interface_name,'ipConfigurationName' => ip_configuration_name,'subscriptionId' => @client.subscription_id},
|
545
|
+
query_params: {'api-version' => api_version},
|
546
|
+
headers: request_headers.merge(custom_headers || {}),
|
547
|
+
base_url: request_url
|
548
|
+
}
|
549
|
+
promise = @client.make_request_async(:get, path_template, options)
|
550
|
+
|
551
|
+
promise = promise.then do |result|
|
552
|
+
http_response = result.response
|
553
|
+
status_code = http_response.status
|
554
|
+
response_content = http_response.body
|
555
|
+
unless status_code == 200
|
556
|
+
error_model = JSON.load(response_content)
|
557
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
558
|
+
end
|
559
|
+
|
560
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
561
|
+
# Deserialize Response
|
562
|
+
if status_code == 200
|
563
|
+
begin
|
564
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
565
|
+
result_mapper = Azure::ARM::Network::Models::PublicIPAddressListResult.mapper()
|
566
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
567
|
+
rescue Exception => e
|
568
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
569
|
+
end
|
570
|
+
end
|
571
|
+
|
572
|
+
result
|
573
|
+
end
|
574
|
+
|
575
|
+
promise.execute
|
576
|
+
end
|
577
|
+
|
578
|
+
#
|
579
|
+
# Get the specified public IP address in a virtual machine scale set.
|
580
|
+
#
|
581
|
+
# @param resource_group_name [String] The name of the resource group.
|
582
|
+
# @param virtual_machine_scale_set_name [String] The name of the virtual
|
583
|
+
# machine scale set.
|
584
|
+
# @param virtualmachine_index [String] The virtual machine index.
|
585
|
+
# @param network_interface_name [String] The name of the network interface.
|
586
|
+
# @param ip_configuration_name [String] The name of the IP configuration.
|
587
|
+
# @param public_ip_address_name [String] The name of the public IP Address.
|
588
|
+
# @param expand [String] Expands referenced resources.
|
589
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
590
|
+
# will be added to the HTTP request.
|
591
|
+
#
|
592
|
+
# @return [PublicIPAddress] operation results.
|
593
|
+
#
|
594
|
+
def get_virtual_machine_scale_set_public_ipaddress(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, ip_configuration_name, public_ip_address_name, expand = nil, custom_headers = nil)
|
595
|
+
response = get_virtual_machine_scale_set_public_ipaddress_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, ip_configuration_name, public_ip_address_name, expand, custom_headers).value!
|
596
|
+
response.body unless response.nil?
|
597
|
+
end
|
598
|
+
|
599
|
+
#
|
600
|
+
# Get the specified public IP address in a virtual machine scale set.
|
601
|
+
#
|
602
|
+
# @param resource_group_name [String] The name of the resource group.
|
603
|
+
# @param virtual_machine_scale_set_name [String] The name of the virtual
|
604
|
+
# machine scale set.
|
605
|
+
# @param virtualmachine_index [String] The virtual machine index.
|
606
|
+
# @param network_interface_name [String] The name of the network interface.
|
607
|
+
# @param ip_configuration_name [String] The name of the IP configuration.
|
608
|
+
# @param public_ip_address_name [String] The name of the public IP Address.
|
609
|
+
# @param expand [String] Expands referenced resources.
|
610
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
611
|
+
# will be added to the HTTP request.
|
612
|
+
#
|
613
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
614
|
+
#
|
615
|
+
def get_virtual_machine_scale_set_public_ipaddress_with_http_info(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, ip_configuration_name, public_ip_address_name, expand = nil, custom_headers = nil)
|
616
|
+
get_virtual_machine_scale_set_public_ipaddress_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, ip_configuration_name, public_ip_address_name, expand, custom_headers).value!
|
617
|
+
end
|
618
|
+
|
619
|
+
#
|
620
|
+
# Get the specified public IP address in a virtual machine scale set.
|
621
|
+
#
|
622
|
+
# @param resource_group_name [String] The name of the resource group.
|
623
|
+
# @param virtual_machine_scale_set_name [String] The name of the virtual
|
624
|
+
# machine scale set.
|
625
|
+
# @param virtualmachine_index [String] The virtual machine index.
|
626
|
+
# @param network_interface_name [String] The name of the network interface.
|
627
|
+
# @param ip_configuration_name [String] The name of the IP configuration.
|
628
|
+
# @param public_ip_address_name [String] The name of the public IP Address.
|
629
|
+
# @param expand [String] Expands referenced resources.
|
630
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
631
|
+
# to the HTTP request.
|
632
|
+
#
|
633
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
634
|
+
#
|
635
|
+
def get_virtual_machine_scale_set_public_ipaddress_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, ip_configuration_name, public_ip_address_name, expand = nil, custom_headers = nil)
|
636
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
637
|
+
fail ArgumentError, 'virtual_machine_scale_set_name is nil' if virtual_machine_scale_set_name.nil?
|
638
|
+
fail ArgumentError, 'virtualmachine_index is nil' if virtualmachine_index.nil?
|
639
|
+
fail ArgumentError, 'network_interface_name is nil' if network_interface_name.nil?
|
640
|
+
fail ArgumentError, 'ip_configuration_name is nil' if ip_configuration_name.nil?
|
641
|
+
fail ArgumentError, 'public_ip_address_name is nil' if public_ip_address_name.nil?
|
642
|
+
api_version = '2017-03-30'
|
643
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
644
|
+
|
645
|
+
|
646
|
+
request_headers = {}
|
647
|
+
|
648
|
+
# Set Headers
|
649
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
650
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
651
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{virtualmachineIndex}/networkInterfaces/{networkInterfaceName}/ipconfigurations/{ipConfigurationName}/publicipaddresses/{publicIpAddressName}'
|
652
|
+
|
653
|
+
request_url = @base_url || @client.base_url
|
654
|
+
|
655
|
+
options = {
|
656
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
657
|
+
path_params: {'resourceGroupName' => resource_group_name,'virtualMachineScaleSetName' => virtual_machine_scale_set_name,'virtualmachineIndex' => virtualmachine_index,'networkInterfaceName' => network_interface_name,'ipConfigurationName' => ip_configuration_name,'publicIpAddressName' => public_ip_address_name,'subscriptionId' => @client.subscription_id},
|
658
|
+
query_params: {'api-version' => api_version,'$expand' => expand},
|
659
|
+
headers: request_headers.merge(custom_headers || {}),
|
660
|
+
base_url: request_url
|
661
|
+
}
|
662
|
+
promise = @client.make_request_async(:get, path_template, options)
|
663
|
+
|
664
|
+
promise = promise.then do |result|
|
665
|
+
http_response = result.response
|
666
|
+
status_code = http_response.status
|
667
|
+
response_content = http_response.body
|
668
|
+
unless status_code == 200
|
669
|
+
error_model = JSON.load(response_content)
|
670
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
671
|
+
end
|
672
|
+
|
673
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
674
|
+
# Deserialize Response
|
675
|
+
if status_code == 200
|
676
|
+
begin
|
677
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
678
|
+
result_mapper = Azure::ARM::Network::Models::PublicIPAddress.mapper()
|
679
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
362
680
|
rescue Exception => e
|
363
681
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
364
682
|
end
|
@@ -411,7 +729,7 @@ module Azure::ARM::Network
|
|
411
729
|
def begin_delete_async(resource_group_name, public_ip_address_name, custom_headers = nil)
|
412
730
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
413
731
|
fail ArgumentError, 'public_ip_address_name is nil' if public_ip_address_name.nil?
|
414
|
-
api_version = '
|
732
|
+
api_version = '2017-06-01'
|
415
733
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
416
734
|
|
417
735
|
|
@@ -420,7 +738,7 @@ module Azure::ARM::Network
|
|
420
738
|
# Set Headers
|
421
739
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
422
740
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
423
|
-
path_template = '
|
741
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPAddresses/{publicIpAddressName}'
|
424
742
|
|
425
743
|
request_url = @base_url || @client.base_url
|
426
744
|
|
@@ -499,7 +817,7 @@ module Azure::ARM::Network
|
|
499
817
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
500
818
|
fail ArgumentError, 'public_ip_address_name is nil' if public_ip_address_name.nil?
|
501
819
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
502
|
-
api_version = '
|
820
|
+
api_version = '2017-06-01'
|
503
821
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
504
822
|
|
505
823
|
|
@@ -512,11 +830,11 @@ module Azure::ARM::Network
|
|
512
830
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
513
831
|
|
514
832
|
# Serialize Request
|
515
|
-
request_mapper = PublicIPAddress.mapper()
|
516
|
-
request_content = @client.serialize(request_mapper, parameters
|
833
|
+
request_mapper = Azure::ARM::Network::Models::PublicIPAddress.mapper()
|
834
|
+
request_content = @client.serialize(request_mapper, parameters)
|
517
835
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
518
836
|
|
519
|
-
path_template = '
|
837
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPAddresses/{publicIpAddressName}'
|
520
838
|
|
521
839
|
request_url = @base_url || @client.base_url
|
522
840
|
|
@@ -544,8 +862,8 @@ module Azure::ARM::Network
|
|
544
862
|
if status_code == 201
|
545
863
|
begin
|
546
864
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
547
|
-
result_mapper = PublicIPAddress.mapper()
|
548
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
865
|
+
result_mapper = Azure::ARM::Network::Models::PublicIPAddress.mapper()
|
866
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
549
867
|
rescue Exception => e
|
550
868
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
551
869
|
end
|
@@ -554,8 +872,8 @@ module Azure::ARM::Network
|
|
554
872
|
if status_code == 200
|
555
873
|
begin
|
556
874
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
557
|
-
result_mapper = PublicIPAddress.mapper()
|
558
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
875
|
+
result_mapper = Azure::ARM::Network::Models::PublicIPAddress.mapper()
|
876
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
559
877
|
rescue Exception => e
|
560
878
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
561
879
|
end
|
@@ -641,8 +959,8 @@ module Azure::ARM::Network
|
|
641
959
|
if status_code == 200
|
642
960
|
begin
|
643
961
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
644
|
-
result_mapper = PublicIPAddressListResult.mapper()
|
645
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
962
|
+
result_mapper = Azure::ARM::Network::Models::PublicIPAddressListResult.mapper()
|
963
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
646
964
|
rescue Exception => e
|
647
965
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
648
966
|
end
|
@@ -728,8 +1046,188 @@ module Azure::ARM::Network
|
|
728
1046
|
if status_code == 200
|
729
1047
|
begin
|
730
1048
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
731
|
-
result_mapper = PublicIPAddressListResult.mapper()
|
732
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
1049
|
+
result_mapper = Azure::ARM::Network::Models::PublicIPAddressListResult.mapper()
|
1050
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
1051
|
+
rescue Exception => e
|
1052
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1053
|
+
end
|
1054
|
+
end
|
1055
|
+
|
1056
|
+
result
|
1057
|
+
end
|
1058
|
+
|
1059
|
+
promise.execute
|
1060
|
+
end
|
1061
|
+
|
1062
|
+
#
|
1063
|
+
# Gets information about all public IP addresses on a virtual machine scale set
|
1064
|
+
# level.
|
1065
|
+
#
|
1066
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
1067
|
+
# to List operation.
|
1068
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1069
|
+
# will be added to the HTTP request.
|
1070
|
+
#
|
1071
|
+
# @return [PublicIPAddressListResult] operation results.
|
1072
|
+
#
|
1073
|
+
def list_virtual_machine_scale_set_public_ipaddresses_next(next_page_link, custom_headers = nil)
|
1074
|
+
response = list_virtual_machine_scale_set_public_ipaddresses_next_async(next_page_link, custom_headers).value!
|
1075
|
+
response.body unless response.nil?
|
1076
|
+
end
|
1077
|
+
|
1078
|
+
#
|
1079
|
+
# Gets information about all public IP addresses on a virtual machine scale set
|
1080
|
+
# level.
|
1081
|
+
#
|
1082
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
1083
|
+
# to List operation.
|
1084
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1085
|
+
# will be added to the HTTP request.
|
1086
|
+
#
|
1087
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1088
|
+
#
|
1089
|
+
def list_virtual_machine_scale_set_public_ipaddresses_next_with_http_info(next_page_link, custom_headers = nil)
|
1090
|
+
list_virtual_machine_scale_set_public_ipaddresses_next_async(next_page_link, custom_headers).value!
|
1091
|
+
end
|
1092
|
+
|
1093
|
+
#
|
1094
|
+
# Gets information about all public IP addresses on a virtual machine scale set
|
1095
|
+
# level.
|
1096
|
+
#
|
1097
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
1098
|
+
# to List operation.
|
1099
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1100
|
+
# to the HTTP request.
|
1101
|
+
#
|
1102
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1103
|
+
#
|
1104
|
+
def list_virtual_machine_scale_set_public_ipaddresses_next_async(next_page_link, custom_headers = nil)
|
1105
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
1106
|
+
|
1107
|
+
|
1108
|
+
request_headers = {}
|
1109
|
+
|
1110
|
+
# Set Headers
|
1111
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1112
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1113
|
+
path_template = '{nextLink}'
|
1114
|
+
|
1115
|
+
request_url = @base_url || @client.base_url
|
1116
|
+
|
1117
|
+
options = {
|
1118
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1119
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
1120
|
+
headers: request_headers.merge(custom_headers || {}),
|
1121
|
+
base_url: request_url
|
1122
|
+
}
|
1123
|
+
promise = @client.make_request_async(:get, path_template, options)
|
1124
|
+
|
1125
|
+
promise = promise.then do |result|
|
1126
|
+
http_response = result.response
|
1127
|
+
status_code = http_response.status
|
1128
|
+
response_content = http_response.body
|
1129
|
+
unless status_code == 200
|
1130
|
+
error_model = JSON.load(response_content)
|
1131
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
1132
|
+
end
|
1133
|
+
|
1134
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1135
|
+
# Deserialize Response
|
1136
|
+
if status_code == 200
|
1137
|
+
begin
|
1138
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1139
|
+
result_mapper = Azure::ARM::Network::Models::PublicIPAddressListResult.mapper()
|
1140
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
1141
|
+
rescue Exception => e
|
1142
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1143
|
+
end
|
1144
|
+
end
|
1145
|
+
|
1146
|
+
result
|
1147
|
+
end
|
1148
|
+
|
1149
|
+
promise.execute
|
1150
|
+
end
|
1151
|
+
|
1152
|
+
#
|
1153
|
+
# Gets information about all public IP addresses in a virtual machine IP
|
1154
|
+
# configuration in a virtual machine scale set.
|
1155
|
+
#
|
1156
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
1157
|
+
# to List operation.
|
1158
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1159
|
+
# will be added to the HTTP request.
|
1160
|
+
#
|
1161
|
+
# @return [PublicIPAddressListResult] operation results.
|
1162
|
+
#
|
1163
|
+
def list_virtual_machine_scale_set_vmpublic_ipaddresses_next(next_page_link, custom_headers = nil)
|
1164
|
+
response = list_virtual_machine_scale_set_vmpublic_ipaddresses_next_async(next_page_link, custom_headers).value!
|
1165
|
+
response.body unless response.nil?
|
1166
|
+
end
|
1167
|
+
|
1168
|
+
#
|
1169
|
+
# Gets information about all public IP addresses in a virtual machine IP
|
1170
|
+
# configuration in a virtual machine scale set.
|
1171
|
+
#
|
1172
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
1173
|
+
# to List operation.
|
1174
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1175
|
+
# will be added to the HTTP request.
|
1176
|
+
#
|
1177
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
1178
|
+
#
|
1179
|
+
def list_virtual_machine_scale_set_vmpublic_ipaddresses_next_with_http_info(next_page_link, custom_headers = nil)
|
1180
|
+
list_virtual_machine_scale_set_vmpublic_ipaddresses_next_async(next_page_link, custom_headers).value!
|
1181
|
+
end
|
1182
|
+
|
1183
|
+
#
|
1184
|
+
# Gets information about all public IP addresses in a virtual machine IP
|
1185
|
+
# configuration in a virtual machine scale set.
|
1186
|
+
#
|
1187
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
1188
|
+
# to List operation.
|
1189
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
1190
|
+
# to the HTTP request.
|
1191
|
+
#
|
1192
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
1193
|
+
#
|
1194
|
+
def list_virtual_machine_scale_set_vmpublic_ipaddresses_next_async(next_page_link, custom_headers = nil)
|
1195
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
1196
|
+
|
1197
|
+
|
1198
|
+
request_headers = {}
|
1199
|
+
|
1200
|
+
# Set Headers
|
1201
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
1202
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
1203
|
+
path_template = '{nextLink}'
|
1204
|
+
|
1205
|
+
request_url = @base_url || @client.base_url
|
1206
|
+
|
1207
|
+
options = {
|
1208
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
1209
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
1210
|
+
headers: request_headers.merge(custom_headers || {}),
|
1211
|
+
base_url: request_url
|
1212
|
+
}
|
1213
|
+
promise = @client.make_request_async(:get, path_template, options)
|
1214
|
+
|
1215
|
+
promise = promise.then do |result|
|
1216
|
+
http_response = result.response
|
1217
|
+
status_code = http_response.status
|
1218
|
+
response_content = http_response.body
|
1219
|
+
unless status_code == 200
|
1220
|
+
error_model = JSON.load(response_content)
|
1221
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
1222
|
+
end
|
1223
|
+
|
1224
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
1225
|
+
# Deserialize Response
|
1226
|
+
if status_code == 200
|
1227
|
+
begin
|
1228
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1229
|
+
result_mapper = Azure::ARM::Network::Models::PublicIPAddressListResult.mapper()
|
1230
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
733
1231
|
rescue Exception => e
|
734
1232
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
735
1233
|
end
|
@@ -782,5 +1280,56 @@ module Azure::ARM::Network
|
|
782
1280
|
end
|
783
1281
|
end
|
784
1282
|
|
1283
|
+
#
|
1284
|
+
# Gets information about all public IP addresses on a virtual machine scale set
|
1285
|
+
# level.
|
1286
|
+
#
|
1287
|
+
# @param resource_group_name [String] The name of the resource group.
|
1288
|
+
# @param virtual_machine_scale_set_name [String] The name of the virtual
|
1289
|
+
# machine scale set.
|
1290
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1291
|
+
# will be added to the HTTP request.
|
1292
|
+
#
|
1293
|
+
# @return [PublicIPAddressListResult] which provide lazy access to pages of the
|
1294
|
+
# response.
|
1295
|
+
#
|
1296
|
+
def list_virtual_machine_scale_set_public_ipaddresses_as_lazy(resource_group_name, virtual_machine_scale_set_name, custom_headers = nil)
|
1297
|
+
response = list_virtual_machine_scale_set_public_ipaddresses_async(resource_group_name, virtual_machine_scale_set_name, custom_headers).value!
|
1298
|
+
unless response.nil?
|
1299
|
+
page = response.body
|
1300
|
+
page.next_method = Proc.new do |next_page_link|
|
1301
|
+
list_virtual_machine_scale_set_public_ipaddresses_next_async(next_page_link, custom_headers)
|
1302
|
+
end
|
1303
|
+
page
|
1304
|
+
end
|
1305
|
+
end
|
1306
|
+
|
1307
|
+
#
|
1308
|
+
# Gets information about all public IP addresses in a virtual machine IP
|
1309
|
+
# configuration in a virtual machine scale set.
|
1310
|
+
#
|
1311
|
+
# @param resource_group_name [String] The name of the resource group.
|
1312
|
+
# @param virtual_machine_scale_set_name [String] The name of the virtual
|
1313
|
+
# machine scale set.
|
1314
|
+
# @param virtualmachine_index [String] The virtual machine index.
|
1315
|
+
# @param network_interface_name [String] The network interface name.
|
1316
|
+
# @param ip_configuration_name [String] The IP configuration name.
|
1317
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
1318
|
+
# will be added to the HTTP request.
|
1319
|
+
#
|
1320
|
+
# @return [PublicIPAddressListResult] which provide lazy access to pages of the
|
1321
|
+
# response.
|
1322
|
+
#
|
1323
|
+
def list_virtual_machine_scale_set_vmpublic_ipaddresses_as_lazy(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, ip_configuration_name, custom_headers = nil)
|
1324
|
+
response = list_virtual_machine_scale_set_vmpublic_ipaddresses_async(resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, ip_configuration_name, custom_headers).value!
|
1325
|
+
unless response.nil?
|
1326
|
+
page = response.body
|
1327
|
+
page.next_method = Proc.new do |next_page_link|
|
1328
|
+
list_virtual_machine_scale_set_vmpublic_ipaddresses_next_async(next_page_link, custom_headers)
|
1329
|
+
end
|
1330
|
+
page
|
1331
|
+
end
|
1332
|
+
end
|
1333
|
+
|
785
1334
|
end
|
786
1335
|
end
|